Merge pull request #6160 from opentx/mpaperno/simu_better_shutdown_2.3

Refactor simu startup and shutdown handling (for 2.3 branch):
This commit is contained in:
Bertrand Songis
2018-10-11 09:41:58 +02:00
committed by GitHub
13 changed files with 113 additions and 94 deletions
+1 -1
View File
@@ -82,6 +82,7 @@ void runFatalErrorScreen(const char * message)
uint32_t pwr_check = pwrCheck();
if (pwr_check == e_power_off) {
boardOff();
return; // only happens in SIMU, required for proper shutdown
}
else if (pwr_check == e_power_press) {
refresh = true;
@@ -89,7 +90,6 @@ void runFatalErrorScreen(const char * message)
else if (pwr_check == e_power_on && refresh) {
break;
}
SIMU_SLEEP_NORET(1);
}
}
}