receiver: fix bug reporting hid++ 1.0 batteries
This commit is contained in:
parent
f191d95990
commit
aeb03df3f7
|
@ -189,7 +189,7 @@ def parse_battery_status(register, reply):
|
||||||
else BATTERY_STATUS.recharging if status_byte == 0x50
|
else BATTERY_STATUS.recharging if status_byte == 0x50
|
||||||
else BATTERY_STATUS.full if status_byte == 0x90
|
else BATTERY_STATUS.full if status_byte == 0x90
|
||||||
else None)
|
else None)
|
||||||
return charge, status_text
|
return charge, status_text, None
|
||||||
|
|
||||||
if register == REGISTERS.battery_status:
|
if register == REGISTERS.battery_status:
|
||||||
status_byte = ord(reply[:1])
|
status_byte = ord(reply[:1])
|
||||||
|
|
Loading…
Reference in New Issue