1
0
forked from drath/libratbag

sinowealth: set the RGB effect to unsupported if LED type is not defined

This commit is contained in:
Yaroslav Chvanov
2022-01-28 15:59:44 +03:00
committed by Peter Hutterer
parent 0a39552a65
commit cf64aac5f1

View File

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