Fix order of operators

This commit is contained in:
redfast00 2022-01-17 19:01:00 +01:00
parent 6b37d62eaa
commit e519e5c9ac
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -116,7 +116,7 @@ def serial_reader(shared_data):
if len(line) == 12:
if line == b'BEGIN START\n':
continue
sender = int(line[0] << 8 + line[1])
sender = (int(line[0]) << 8) + int(line[1])
size = int(line[2])
message = line[3:3+size]
received = Message(message, sender, datetime.now(), len(shared_data.messages))