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

Ensure failsafe does not repeatedly call disarm when landed.

This commit is contained in:
Dominic Clifton 2015-04-18 19:00:20 +01:00
parent a34e8f0bdb
commit d4eb558254
2 changed files with 17 additions and 1 deletions

View file

@ -185,13 +185,15 @@ void failsafeUpdateState(void)
case FAILSAFE_LANDED:
if (!armed) {
break;
}
// This will prevent the automatic rearm if failsafe shuts it down and prevents
// to restart accidently by just reconnect to the tx - you will have to switch off first to rearm
ENABLE_ARMING_FLAG(PREVENT_ARMING);
failsafeState.active = false;
mwDisarm();
break;
default: