cli: finish change to show.py for new constants
This commit is contained in:
parent
86b55b9c25
commit
a7784b40ab
|
@ -57,7 +57,7 @@ def _print_receiver(receiver):
|
||||||
else:
|
else:
|
||||||
print(" Notifications: (none)")
|
print(" Notifications: (none)")
|
||||||
|
|
||||||
activity = receiver.read_register(_hidpp10_constants.REGISTERS.devices_activity)
|
activity = receiver.read_register(_hidpp10_constants.Registers.DEVICES_ACTIVITY)
|
||||||
if activity:
|
if activity:
|
||||||
activity = [(d, ord(activity[d - 1 : d])) for d in range(1, receiver.max_devices)]
|
activity = [(d, ord(activity[d - 1 : d])) for d in range(1, receiver.max_devices)]
|
||||||
activity_text = ", ".join(f"{int(d)}={int(a)}" for d, a in activity if a > 0)
|
activity_text = ", ".join(f"{int(d)}={int(a)}" for d, a in activity if a > 0)
|
||||||
|
|
Loading…
Reference in New Issue