1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Crash recovery little change for Buzzer

I did a mistake in my latest PR and the buzzer was not working at all when quad disarmed.
Now it work and it will also stop beeping if we disarm during a crashrecovery.
This commit is contained in:
Vidalcris 2017-10-20 01:19:31 +02:00 committed by GitHub
parent 184fc3c7a2
commit eb9db1ea64

View file

@ -529,9 +529,11 @@ void pidController(const pidProfile_t *pidProfile, const rollAndPitchTrims_t *an
inCrashRecoveryMode = false; inCrashRecoveryMode = false;
} }
} else { } else {
inCrashRecoveryMode = false; if (inCrashRecoveryMode) {
BEEP_OFF; BEEP_OFF;
} }
inCrashRecoveryMode = false;
}
} }
axisPID_D[axis] = Kd[axis] * delta * tpaFactor; axisPID_D[axis] = Kd[axis] * delta * tpaFactor;
} }