mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[on-boarding] Go to standby when suspended while the active app is
on-boarding
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user