debug logic and whitespace

This commit is contained in:
bunnie 2022-06-28 01:14:38 +08:00
parent b1a37037dd
commit a0217d9ffd
2 changed files with 2 additions and 1 deletions

View file

@ -745,6 +745,7 @@ fn wrapped_main() -> ! {
if ((llio.adc_vbus().unwrap() as u32) * 503) > 150_000 {
modals.show_notification(t!("mainmenu.cant_sleep", xous::LANG), None).expect("couldn't notify that power is plugged in");
} else {
// log::set_max_level(log::LevelFilter::Debug);
susres.initiate_suspend().expect("couldn't initiate suspend op");
}
},

View file

@ -49,7 +49,7 @@ pub fn create_main_menu(keys: Arc<Mutex<RootKeys>>, menu_management_sid: xous::S
// action_payload: MenuPayload::Scalar([0, 0, 0, 0]),
// close_on_select: true,
// });
menuitems.push(MenuItem {
name: String::from_str(t!("mainmenu.sleep", xous::LANG)),
action_conn: Some(status_conn),