mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
steelseries: set LED capabilities
The Rival and earlier versions did not support cycle mode on the device.
This commit is contained in:
committed by
Peter Hutterer
parent
920fb3917f
commit
e02d0724a3
@@ -203,6 +203,11 @@ steelseries_probe(struct ratbag_device *device)
|
||||
led->color.red = 0;
|
||||
led->color.green = 0;
|
||||
led->color.blue = 255;
|
||||
ratbag_led_set_mode_capability(led, RATBAG_LED_OFF);
|
||||
ratbag_led_set_mode_capability(led, RATBAG_LED_ON);
|
||||
ratbag_led_set_mode_capability(led, RATBAG_LED_BREATHING);
|
||||
if (device_version >= 2)
|
||||
ratbag_led_set_mode_capability(led, RATBAG_LED_CYCLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user