Skip to content

Commit

Permalink
cli: finish change to show.py for new constants
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Jun 13, 2024
1 parent 86b55b9 commit 2d1ac67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solaar/cli/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d1ac67

Please sign in to comment.