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:
commit
b0ff928afd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1615,4 +1615,5 @@ extern "C" {
|
|||
uint8_t armingFlags = 0;
|
||||
bool cmsInMenu;
|
||||
uint32_t resumeRefreshAt = 0;
|
||||
int getArmingDisableFlags(void) {return 0;}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue