fix incomplete format string

This commit is contained in:
Stefan Allius
2024-04-18 18:45:01 +02:00
parent ee1722e374
commit 27ac47fde9

View File

@@ -415,7 +415,7 @@ class SolarmanV5(Message):
def msg_sync_end(self): def msg_sync_end(self):
data = self._recv_buffer[self.header_len:] data = self._recv_buffer[self.header_len:]
result = struct.unpack_from('<BLL', data, 0) result = struct.unpack_from('<BLLL', data, 0)
ftype = result[0] ftype = result[0]
total = result[1] total = result[1]
self.time_ofs = result[3] self.time_ofs = result[3]