Update notebook adapter emulator to work with newer Ironman software

This commit is contained in:
Simon Larsson
2022-04-02 10:40:16 +02:00
parent 493046f18b
commit 01c604b534
+3 -1
View File
@@ -48,6 +48,8 @@ with serial.Serial(serialPort, 9600) as sp:
if len(inb) == 0:
break
# print("CTS: {}\tDSR: {}\tRI: {}\tCD: {}".format(sp.cts,sp.dsr,sp.ri,sp.cd))
if not transmitState:
if inb == b"x":
print("Received detection byte ('x')")
@@ -55,7 +57,7 @@ with serial.Serial(serialPort, 9600) as sp:
elif inb == b"?":
print("Received device ID query ('?')")
send("M764\0".encode())
send("?M764\0".encode())
elif inb == b"U":
print("Received sync byte, entering transmit state")