1
0
mirror of https://github.com/jonathanhogg/scopething synced 2025-07-14 03:02:09 +01:00

Yet more work on triggering - still doesn't work properly for mixed/logic

This commit is contained in:
Jonathan Hogg
2017-03-27 16:18:02 +01:00
parent bc6f585e2b
commit 40ac792121
2 changed files with 93 additions and 74 deletions

View File

@ -16,6 +16,7 @@ class SerialStream:
for port in comports():
if port.vid == vid and port.pid == pid:
return SerialStream(port.device, **kwargs)
raise RuntimeError("No matching serial device")
def __init__(self, device, loop=None, **kwargs):
self._device = device