log value of register 0x07 when register 0x0D not available

This commit is contained in:
Daniel Pavel 2013-01-18 12:41:01 +02:00
parent 445f508ea5
commit 2e51380be5
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,11 @@ def get_battery(device):
else None)
return charge, status
reply = get_register(device, 'battery_status', 0x07)
if reply:
battery_status = ord(reply[:1])
_log.info("%s: battery status %02X", device, battery_status)
def get_serial(device):
if device.kind is None: