mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Merge pull request #5205 from etracer65/runaway_takeoff_reset_after_crashflip
Reactivate Runaway Takeoff Prevention after using crash-flip
This commit is contained in:
commit
7cd97b8fc0
1 changed files with 3 additions and 0 deletions
|
@ -308,6 +308,9 @@ void tryArm(void)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
flipOverAfterCrashMode = true;
|
flipOverAfterCrashMode = true;
|
||||||
|
#ifdef USE_RUNAWAY_TAKEOFF
|
||||||
|
runawayTakeoffCheckDisabled = false;
|
||||||
|
#endif
|
||||||
if (!feature(FEATURE_3D)) {
|
if (!feature(FEATURE_3D)) {
|
||||||
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_REVERSED);
|
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_REVERSED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue