1
0
forked from drath/libratbag

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:
Thomas Hindoe Paaboel Andersen
2017-09-28 00:59:49 +02:00
committed by Peter Hutterer
parent 1adb147f6d
commit e0de98ba01

View File

@@ -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;