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:
committed by
Andre Bernet
parent
808d7749c7
commit
b9bb831b7f
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user