mirror of
https://github.com/Snigelson/pytimex.git
synced 2026-09-22 18:26:33 +00:00
Update notebook adapter emulator to work with newer Ironman software
This commit is contained in:
1 parent
493046f18b
commit
01c604b534
1 file changed
+3
-1
@@ -48,6 +48,8 @@ with serial.Serial(serialPort, 9600) as sp:
|
|||||||
if len(inb) == 0:
|
if len(inb) == 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# print("CTS: {}\tDSR: {}\tRI: {}\tCD: {}".format(sp.cts,sp.dsr,sp.ri,sp.cd))
|
||||||
|
|
||||||
if not transmitState:
|
if not transmitState:
|
||||||
if inb == b"x":
|
if inb == b"x":
|
||||||
print("Received detection byte ('x')")
|
print("Received detection byte ('x')")
|
||||||
@@ -55,7 +57,7 @@ with serial.Serial(serialPort, 9600) as sp:
|
|||||||
|
|
||||||
elif inb == b"?":
|
elif inb == b"?":
|
||||||
print("Received device ID query ('?')")
|
print("Received device ID query ('?')")
|
||||||
send("M764\0".encode())
|
send("?M764\0".encode())
|
||||||
|
|
||||||
elif inb == b"U":
|
elif inb == b"U":
|
||||||
print("Received sync byte, entering transmit state")
|
print("Received sync byte, entering transmit state")
|
||||||
|
|||||||
Reference in new issue
Block a user