mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Better handling of supergfx version check, aura config updates
This commit is contained in:
@@ -114,7 +114,15 @@ impl CtrlKbdLed {
|
||||
LEDNode::None
|
||||
};
|
||||
|
||||
let config = AuraConfig::create_default(led_prod, &supported_modes).load();
|
||||
let config_init = AuraConfig::create_default(led_prod, &supported_modes);
|
||||
let mut config = config_init.clone().load();
|
||||
// Do updates of supported modes if required
|
||||
for mode in &config_init.builtins {
|
||||
if !config.builtins.contains_key(mode.0) {
|
||||
config.builtins.insert(*mode.0, mode.1.clone());
|
||||
}
|
||||
}
|
||||
|
||||
let ctrl = CtrlKbdLed {
|
||||
led_prod,
|
||||
led_node, // on TUF this is the same as rgb_led / kd_brightness
|
||||
|
||||
Reference in New Issue
Block a user