cli: finish change to show.py for new constants

This commit is contained in:
Peter F. Patel-Schneider 2024-06-13 05:50:23 -04:00
parent 86b55b9c25
commit a7784b40ab
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def _print_receiver(receiver):
else:
print(" Notifications: (none)")
activity = receiver.read_register(_hidpp10_constants.REGISTERS.devices_activity)
activity = receiver.read_register(_hidpp10_constants.Registers.DEVICES_ACTIVITY)
if activity:
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)