mirror of
https://github.com/jonathanhogg/scopething
synced 2025-07-14 03:02:09 +01:00
Checkpoint of work in progress
This commit is contained in:
6
scope.py
6
scope.py
@ -5,9 +5,7 @@ from streams import SerialStream
|
||||
|
||||
class Scope(object):
|
||||
|
||||
def __init__(self, stream=None):
|
||||
if stream is None:
|
||||
stream = SerialStream()
|
||||
def __init__(self, stream):
|
||||
self._stream = stream
|
||||
|
||||
async def reset(self):
|
||||
@ -23,7 +21,7 @@ class Scope(object):
|
||||
|
||||
|
||||
async def main():
|
||||
s = Scope()
|
||||
s = Scope(SerialStream())
|
||||
await s.reset()
|
||||
print(await s.get_revision())
|
||||
|
||||
|
Reference in New Issue
Block a user