1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 14:25:11 +03:00

[Taranis X9E] Shutdown procedure modified (popup with confirmation

added)
This commit is contained in:
bsongis 2015-07-10 14:10:16 +02:00
parent 1f0d0433bb
commit 17f465bff5
8 changed files with 197 additions and 74 deletions

View file

@ -159,7 +159,18 @@ void menusTask(void * pdata)
{
opentxInit();
#if defined(PCBTARANIS) && defined(REV9E)
while (1) {
uint32_t pwr_check = pwrCheck();
if (pwr_check == e_power_off) {
break;
}
else if (pwr_check == e_power_press) {
continue;
}
#else
while (pwrCheck() != e_power_off) {
#endif
U64 start = CoGetOSTime();
perMain();
// TODO remove completely massstorage from sky9x firmware