Skip to content

Commit f8609f2

Browse files
committed
Add delay before boot screen and restart after formatting SPIFFS in SettingsMenu
1 parent 1313553 commit f8609f2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ void setup()
2121
M5.Power.powerOff();
2222
}
2323

24+
delay(3500);
25+
2426
boot::BootScreen();
2527
}
2628

src/modules/menus/SettingsMenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void SettingsMenu::ShowMenu() {
88
{"Deep Sleep", [=] { Settings::DeepSleep(); }},
99
{"Light Sleep", [=] { Settings::LightSpeed(); }},
1010
{"Reboot", [=] { Settings::Reboot(); }},
11-
{"Format SPIFFS", [] { files::format(); }},
11+
{"Format SPIFFS", [] { files::format(); ESP.restart(); }},
1212
{"Main Menu", [] { menu::MainMenu(); }},
1313
};
1414
print::LoopOptions(options, "WiFi Menu", 0);

0 commit comments

Comments
 (0)