some comment bookkeeping and whitespace cleanup

This commit is contained in:
bunnie 2022-06-18 00:17:35 +08:00
parent a91292509e
commit 9eec4436ea
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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<BacklightThreadOps>, Receiver<BacklightThreadOps>) = 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