chore: remove wifi menu mentions from status main

This commit is contained in:
Gianguido Sorà 2022-11-02 18:45:23 +01:00
parent 83d67a663b
commit 1c55028af6

View file

@ -83,10 +83,7 @@ pub(crate) enum StatusOpcode {
BatteryDisconnect,
/// for returning wifi stats
WifiStats,
/// Raise the wifi menu
WifiMenu,
/// Raise the preferences menu
Preferences,
Quit,
@ -858,10 +855,6 @@ fn wrapped_main() -> ! {
};
wifi_status = WlanStatus::from_ipc(buffer.to_original::<com::WlanStatusIpc, _>().unwrap());
},
Some(StatusOpcode::WifiMenu) => {
ticktimer.sleep_ms(100).ok(); // yield for a moment to allow the previous menu to close
gam.raise_menu(gam::WIFI_MENU_NAME).unwrap();
},
Some(StatusOpcode::Preferences) => {
ticktimer.sleep_ms(100).ok(); // yield for a moment to allow the previous menu to close
gam.raise_menu(gam::PREFERENCES_MENU_NAME).unwrap();