Merge pull request #5205 from etracer65/runaway_takeoff_reset_after_crashflip

Reactivate Runaway Takeoff Prevention after using crash-flip
This commit is contained in:
Michael Keller 2018-02-18 03:17:44 +13:00 committed by GitHub
commit 7cd97b8fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -308,6 +308,9 @@ void tryArm(void)
}
} else {
flipOverAfterCrashMode = true;
#ifdef USE_RUNAWAY_TAKEOFF
runawayTakeoffCheckDisabled = false;
#endif
if (!feature(FEATURE_3D)) {
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_REVERSED);
}