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:
parent
184fc3c7a2
commit
eb9db1ea64
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue