device: Fix another crash when reading notification flags (#3206)

This commit is contained in:
Jakob Wenzel 2026-05-10 15:58:35 +02:00 committed by GitHub
parent ec05c112f0
commit 4f3583ae10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ def _print_device(dev, num=None):
if notification_flags is not None:
if notification_flags:
notification_names = hidpp10_constants.NotificationFlag.flag_names(notification_flags)
print(f" Notifications: {', '.join(notification_names)} (0x{notification_flags:06X}).")
print(f" Notifications: {', '.join(notification_names)} (0x{notification_flags.value:06X}).")
else:
print(" Notifications: (none).")
device_features = _hidpp10.get_device_features(dev)