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

Bsongis/horus flash external device (#4446)

* CMake options changed to UNEXPECTED_SHUTDOWN=YES/NO and  PWR_BUTTON=PRESS/SWITCH

* [X12S / X10] Flash an external device is now OK
This commit is contained in:
Bertrand Songis 2017-02-12 21:04:46 +01:00 committed by Andre Bernet
parent 808d7749c7
commit b9bb831b7f
25 changed files with 107 additions and 158 deletions

View file

@ -100,7 +100,7 @@ void resetForcePowerOffRequest()
bool isForcePowerOffRequested()
{
if (pwroffPressed()) {
if (pwrOffPressed()) {
if (timeForcePowerOffPressed == 0) {
timeForcePowerOffPressed = get_tmr10ms();
}
@ -202,7 +202,7 @@ void menusTask(void * pdata)
{
opentxInit();
#if defined(PWR_BUTTON_DELAY)
#if defined(PWR_BUTTON_PRESS)
while (1) {
uint32_t pwr_check = pwrCheck();
if (pwr_check == e_power_off) {