1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Make Dshot reversing command being sent conditional on DSHOT_REVERSE mode being configured (unconfiguring it fixes problem with BLHeli_S 16.62).

This commit is contained in:
mikeller 2017-08-13 15:04:16 +12:00
parent f00b885799
commit e7de536bb6

View file

@ -227,7 +227,7 @@ void tryArm(void)
return;
}
#ifdef USE_DSHOT
if (isMotorProtocolDshot()) {
if (isMotorProtocolDshot() && isModeActivationConditionPresent(BOXDSHOTREVERSE)) {
if (!IS_RC_MODE_ACTIVE(BOXDSHOTREVERSE)) {
reverseMotors = false;
for (unsigned index = 0; index < getMotorCount(); index++) {