mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
sinowealth: set the RGB effect to unsupported if LED type is not defined
This commit is contained in:
committed by
Peter Hutterer
parent
0a39552a65
commit
cf64aac5f1
@@ -856,6 +856,9 @@ sinowealth_commit(struct ratbag_device *device)
|
||||
break;
|
||||
}
|
||||
ratbag_led_unref(led);
|
||||
} else {
|
||||
/* Reset the value in case we accidentally managed to set it when we were not supposed to. */
|
||||
config->rgb_effect = RGB_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
config->config_write = drv_data->config_size - 8;
|
||||
|
||||
Reference in New Issue
Block a user