receiver: fix bug reporting hid++ 1.0 batteries

This commit is contained in:
Peter F. Patel-Schneider 2020-06-15 16:51:16 -04:00
parent f191d95990
commit aeb03df3f7
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ def parse_battery_status(register, reply):
else BATTERY_STATUS.recharging if status_byte == 0x50
else BATTERY_STATUS.full if status_byte == 0x90
else None)
return charge, status_text
return charge, status_text, None
if register == REGISTERS.battery_status:
status_byte = ord(reply[:1])