Switch from magic number to named constant

This commit is contained in:
Adam Boardman 2020-12-16 20:53:19 +00:00
parent aa286eb460
commit 23020b51cf

View file

@ -901,7 +901,7 @@ def readMessage(msg):
except Exception as e:
print(e)
if cmdId == 143:
if cmdId == CMD_SYNC_SYS_SLEEP_STATUS:
handled = True
print("<- CoDiOFF")
try: