mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Reworked arming conditions.
This commit is contained in:
parent
fb0429597f
commit
31df82db2d
20 changed files with 149 additions and 107 deletions
|
@ -574,7 +574,7 @@ STATIC_UNIT_TESTED void cmsMenuOpen(void)
|
|||
return;
|
||||
cmsInMenu = true;
|
||||
currentCtx = (cmsCtx_t){ &menuMain, 0, 0 };
|
||||
DISABLE_ARMING_FLAG(OK_TO_ARM);
|
||||
setArmingDisabled(ARMING_DISABLED_CMS_MENU);
|
||||
} else {
|
||||
// Switch display
|
||||
displayPort_t *pNextDisplay = cmsDisplayPortSelectNext();
|
||||
|
@ -642,7 +642,7 @@ long cmsMenuExit(displayPort_t *pDisplay, const void *ptr)
|
|||
systemReset();
|
||||
}
|
||||
|
||||
ENABLE_ARMING_FLAG(OK_TO_ARM);
|
||||
unsetArmingDisabled(ARMING_DISABLED_CMS_MENU);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue