[on-boarding] Go to standby when suspended while the active app is

on-boarding
This commit is contained in:
Émilie Feral
2019-04-12 17:29:27 +02:00
parent 744686bcb3
commit 158292ec95
2 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ bool App::processEvent(Ion::Events::Event e) {
return true;
}
if (e == Ion::Events::OnOff) {
m_languageController.reinitOnBoarding();
Ion::Power::standby(); // Force a core reset to exit
}
return ::App::processEvent(e);
}

View File

@@ -6,10 +6,10 @@ namespace Ion {
namespace Power {
void standby() {
waitUntilOnOffKeyReleased();
standbyConfiguration();
Device::Power::waitUntilOnOffKeyReleased();
Device::Power::standbyConfiguration();
Device::Board::shutdown();
enterLowPowerMode();
Device::Power::enterLowPowerMode();
Device::Reset::core();
}