1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

Merge pull request #7159 from TonyBlit/gps_rescue_prevent_arm

GPS Rescue: check failsafe procedure when preventing arming
This commit is contained in:
Michael Keller 2018-12-03 23:33:04 +13:00 committed by GitHub
commit 76e3722a17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,7 +276,7 @@ void updateArmingStatus(void)
}
#ifdef USE_GPS_RESCUE
if (isModeActivationConditionPresent(BOXGPSRESCUE)) {
if (gpsRescueIsConfigured()) {
if (!gpsRescueConfig()->minSats || STATE(GPS_FIX) || ARMING_FLAG(WAS_EVER_ARMED)) {
unsetArmingDisabled(ARMING_DISABLED_GPS);
} else {