cleanup the policy token straggler

This commit is contained in:
bunnie 2022-01-17 04:36:40 +08:00
parent 11162860a8
commit 3c87091565
2 changed files with 3 additions and 3 deletions

View file

@ -10,14 +10,14 @@
*/ */
// if you add more UxContexts, and you want them authorized by the GAM, add their names here. // if you add more UxContexts, and you want them authorized by the GAM, add their names here.
const TOKEN_SLOTS: usize = 9; const TOKEN_SLOTS: usize = 8;
const EXPECTED_BOOT_CONTEXTS: [&'static str; TOKEN_SLOTS] = [ const EXPECTED_BOOT_CONTEXTS: [&'static str; TOKEN_SLOTS] = [
"shellchat", "shellchat",
"main menu", "main menu",
"status", "status",
"emoji menu", "emoji menu",
"rootkeys modal", "rootkeys modal",
"rootkeys menu", //"rootkeys menu",
"pddb modal", "pddb modal",
"shared modal", "shared modal",
"pddb menu", "pddb menu",

View file

@ -623,7 +623,7 @@ fn xmain() -> ! {
} }
} }
Some(StatusOpcode::SubmenuPddb) => { Some(StatusOpcode::SubmenuPddb) => {
ticktimer.sleep_ms(100).ok(); ticktimer.sleep_ms(100).ok(); // yield for a moment to allow the previous menu to close
gam.raise_menu(pddb::PDDB_MENU_NAME).expect("couldn't raise PDDB submenu"); gam.raise_menu(pddb::PDDB_MENU_NAME).expect("couldn't raise PDDB submenu");
}, },
Some(StatusOpcode::TrySuspend) => { Some(StatusOpcode::TrySuspend) => {