1
0
forked from drath/libratbag

sinowealth: use commonly available breathing mode

The DM5 does not have the RGB_BREATHING1 mode, but
does have the RGB_BREATHING7 mode. This changes the
driver to map to the commonly available mode.
This commit is contained in:
Thomas H.P. Andersen
2020-09-29 00:25:42 +02:00
parent 9d30ec5437
commit 62a620c056

View File

@@ -481,7 +481,7 @@ sinowealth_commit(struct ratbag_device *device)
config->glorious_mode = sinowealth_led_to_rgb_mode(led);
break;
case RATBAG_LED_BREATHING:
config->rgb_effect = RGB_BREATHING1;
config->rgb_effect = RGB_BREATHING7;
config->breathing1_color = sinowealth_color_to_rbg(led->color);
config->breathing1_mode = sinowealth_led_to_rgb_mode(led);
break;