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:
commit
69a3a4ac08
16 changed files with 60 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue