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

Merge pull request #9315 from hydra/bf-log-disarm-reason

Log disarm reason.
This commit is contained in:
Michael Keller 2020-01-17 19:30:37 +13:00 committed by GitHub
commit 69a3a4ac08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 60 additions and 23 deletions

View file

@ -936,7 +936,7 @@ static void detectAndSetCrashRecovery(
&& fabsf(getSetpointRate(axis)) < crashSetpointThreshold) {
if (crash_recovery == PID_CRASH_RECOVERY_DISARM) {
setArmingDisabled(ARMING_DISABLED_CRASH_DETECTED);
disarm();
disarm(DISARM_REASON_CRASH_PROTECTION);
} else {
inCrashRecoveryMode = true;
crashDetectedAtUs = currentTimeUs;