1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

DSHOT command non-blocking motor selection fix

Fixes a logic error that would send non-blocking DSHOT commands to all motors regardless of the selected motor index.
This commit is contained in:
Bruce Luckcuck 2019-03-17 13:31:22 -04:00
parent 10a27bcb8d
commit 9622b83278

View file

@ -544,7 +544,7 @@ void pwmWriteDshotCommand(uint8_t index, uint8_t motorCount, uint8_t command, bo
if (index == i || index == ALL_MOTORS) { if (index == i || index == ALL_MOTORS) {
commandControl->command[i] = command; commandControl->command[i] = command;
} else { } else {
commandControl->command[i] = command; commandControl->command[i] = DSHOT_CMD_MOTOR_STOP;
} }
} }
commandControl->waitingForIdle = !allMotorsAreIdle(motorCount); commandControl->waitingForIdle = !allMotorsAreIdle(motorCount);