Updated the sync utilities

This commit is contained in:
2024-05-23 16:00:32 +02:00
parent 32a8c27dbf
commit d9d6dae19f
2 changed files with 19 additions and 12 deletions

2
utils/macmaster.py Normal file → Executable file
View File

@ -24,7 +24,7 @@ class MasterMACS():
def receive(self):
buf = self._socke.recv(35, socket.MSG_WAITALL)
if len(buf) < 35:
raise EOFException('Master MACS returned only %d bytes, 30 expected' % len(buf))
raise EOFException('Master MACS returned only %d bytes, 35 expected' % len(buf))
idx = buf.find(0x0D)
ackbyte = buf[idx-1]
if ackbyte == 0x06: