This commit is contained in:
Luke D. Jones
2022-07-24 20:55:09 +12:00
parent 030dd661b8
commit 19370215c0
3 changed files with 0 additions and 10 deletions

View File

@@ -419,7 +419,6 @@ impl CtrlKbdLed {
self.config.read();
// 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();

View File

@@ -175,18 +175,10 @@ impl CtrlKbdLedZbus {
}
/// Return the current mode data
// #[dbus_interface(property)]
async fn led_mode(&self) -> AuraModeNum {
if let Ok(ctrl) = self.0.try_lock() {
// if let Some(mode) = ctrl.config.builtins.get(&ctrl.config.current_mode) {
// if let Ok(json) = serde_json::to_string(&ctrl.config.current_mode) {
// return json;
// }
// }
return ctrl.config.current_mode;
}
// warn!("SetKeyBacklight could not deserialise");
// "SetKeyBacklight could not deserialise".to_string()
AuraModeNum::Static
}

View File

@@ -63,7 +63,6 @@ trait Led {
fn led_brightness(&self) -> zbus::Result<i16>;
/// LedMode property
// #[dbus_proxy(property)]
fn led_mode(&self) -> zbus::Result<AuraModeNum>;
/// LedModes property