@@ -37,7 +37,7 @@ def readAscii(connexion_client : socket):
|
||||
if len(message) != 58 :
|
||||
## At index 22, we have the ASCII outlet number
|
||||
outlet_index = ord(message[22]) - ord('1')
|
||||
if (outlet_index < 1 or outlet_index > 8): ## if garbage, we return earlier
|
||||
if (outlet_index < 0 or outlet_index > 7): ## if garbage, we return earlier
|
||||
return
|
||||
|
||||
match message[25]:
|
||||
|
||||
Reference in New Issue
Block a user