1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

disable runcam camera control in runaway takeoff status

This commit is contained in:
azol 2018-02-24 14:27:46 +08:00 committed by azolyoung
parent 087fa9453a
commit 2d84608daa
2 changed files with 2 additions and 1 deletions

View file

@ -225,7 +225,7 @@ static void rcdevice5KeySimulationProcess(timeUs_t currentTimeUs)
} }
#endif #endif
if (ARMING_FLAG(ARMED)) { if (ARMING_FLAG(ARMED) || getArmingDisableFlags() & ARMING_DISABLED_RUNAWAY_TAKEOFF) {
return; return;
} }

View file

@ -1615,4 +1615,5 @@ extern "C" {
uint8_t armingFlags = 0; uint8_t armingFlags = 0;
bool cmsInMenu; bool cmsInMenu;
uint32_t resumeRefreshAt = 0; uint32_t resumeRefreshAt = 0;
int getArmingDisableFlags(void) {return 0;}
} }