Fix listing of hidpp10 peripherals

The Flag enum was applied the value method twice. remove the value
method call from the set_flag_bits in  device.py. There is no such value
call in receiver.py set_flag_bits in the same commit so I believe this
was a mistake.
With this fix the LX7 mouse is properly enumerated over a Logitech
C-BT44 Receiver (seen as EX100, compatible 27MHz FastRF protocol)

Close #2850.

Fixes: 72c9dfc5 Remove NamedInts: Convert NotificationFlag to flag
This commit is contained in:
Alban Browaeys 2025-04-05 21:24:27 +02:00 committed by Peter F. Patel-Schneider
parent 41ba24eee2
commit 03cfa12852
1 changed files with 1 additions and 3 deletions

View File

@ -467,9 +467,7 @@ class Device:
return False
if enable:
set_flag_bits = (
NotificationFlag.BATTERY_STATUS | NotificationFlag.UI | NotificationFlag.CONFIGURATION_COMPLETE
).value
set_flag_bits = NotificationFlag.BATTERY_STATUS | NotificationFlag.UI | NotificationFlag.CONFIGURATION_COMPLETE
else:
set_flag_bits = 0
ok = _hidpp10.set_notification_flags(self, set_flag_bits)