[bootloader] Mark Epsilon 20.3 as safe

This commit is contained in:
Yaya-Cout
2023-02-17 21:36:34 +01:00
parent c0d998017d
commit 1067216d4f
6 changed files with 74 additions and 71 deletions

View File

@@ -25,7 +25,7 @@ bool App::processEvent(Ion::Events::Event e) {
if (e == Ion::Events::Home) {
return true;
}
if (e == Ion::Events::OnOff) {
if (e == Ion::Events::OnOff && !GlobalPreferences::sharedGlobalPreferences()->isInExamMode()) {
Ion::Power::standby(); // Force a core reset to exit
}
return ::App::processEvent(e);