mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
set CAP_LED for mice with only 1 LED
Even if there is only 1 LED we should set the cap to let Piper change it in the GUI
This commit is contained in:
committed by
Peter Hutterer
parent
1adb147f6d
commit
e0de98ba01
@@ -712,7 +712,7 @@ ratbag_device_init_profiles(struct ratbag_device *device,
|
||||
ratbag_device_set_capability(device, RATBAG_DEVICE_CAP_SWITCHABLE_RESOLUTION);
|
||||
}
|
||||
|
||||
if (num_leds > 1)
|
||||
if (num_leds > 0)
|
||||
ratbag_device_set_capability(device, RATBAG_DEVICE_CAP_LED);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user