diff --git a/services/keyboard/src/main.rs b/services/keyboard/src/main.rs index 2b6b6c5b7..0fa47cfbe 100644 --- a/services/keyboard/src/main.rs +++ b/services/keyboard/src/main.rs @@ -738,7 +738,7 @@ fn main() -> ! { // - GAM // - graphics (if building for hosted mode) // - oqc (for factory test) - // - status sub system (for setting the layout) + // - status sub system (for setting the layout, autobacklight feature) // - USB (for getting layout) #[cfg(any(target_os = "none", target_os = "xous"))] let kbd_sid = xns.register_name(api::SERVER_NAME_KBD, Some(4)).expect("can't register server"); diff --git a/services/status/src/main.rs b/services/status/src/main.rs index 182581965..0f2f957b0 100644 --- a/services/status/src/main.rs +++ b/services/status/src/main.rs @@ -392,7 +392,7 @@ fn wrapped_main() -> ! { SERVER_NAME_STATUS, StatusOpcode::Keypress.to_u32().unwrap() as usize, ); - + let enabled = Arc::new(Mutex::new(false)); let (tx, rx): (Sender, Receiver) = unbounded(); @@ -407,7 +407,7 @@ fn wrapped_main() -> ! { log::trace!("|status: Message: {:?}", msg); match FromPrimitive::from_usize(msg.body.id()) { // TODO: handle tts - Some(StatusOpcode::EnableAutomaticBacklight) => { + Some(StatusOpcode::EnableAutomaticBacklight) => { *enabled.lock().unwrap() = true; // second: delete the first three elements off the menu