From e0de98ba0194a0dd5594a836ea2f96a4427b4426 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Thu, 28 Sep 2017 00:59:49 +0200 Subject: [PATCH] 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 --- src/libratbag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libratbag.c b/src/libratbag.c index f7e481b0..d66da3cc 100644 --- a/src/libratbag.c +++ b/src/libratbag.c @@ -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;