Merge pull request #5296 from azolyoung/disable_runcam_camera_control_in_runaway_takeoff_status

disable runcam camera control in runaway takeoff status
This commit is contained in:
Michael Keller 2018-02-26 01:40:53 +13:00 committed by GitHub
commit b0ff928afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

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