Switch zbus led_mode to return AuraModeNum

This commit is contained in:
Luke D. Jones
2022-07-24 20:45:20 +12:00
parent 1fc12d9855
commit 030dd661b8
3 changed files with 18 additions and 15 deletions

View File

@@ -417,10 +417,11 @@ impl CtrlKbdLed {
let next = self.supported_modes.standard[idx];
self.config.read();
if self.config.builtins.contains_key(&next) {
// if self.config.builtins.contains_key(&next) {
self.config.current_mode = next;
dbg!(self.config.current_mode);
self.write_current_config_mode()?;
}
// }
self.config.write();
}