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:
parent
1f0d0433bb
commit
17f465bff5
8 changed files with 197 additions and 74 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue