1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +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,8 +529,10 @@ void pidController(const pidProfile_t *pidProfile, const rollAndPitchTrims_t *an
inCrashRecoveryMode = false;
}
} else {
if (inCrashRecoveryMode) {
BEEP_OFF;
}
inCrashRecoveryMode = false;
BEEP_OFF;
}
}
axisPID_D[axis] = Kd[axis] * delta * tpaFactor;