Skip to content

Commit

Permalink
DSHOT command non-blocking motor selection fix
Browse files Browse the repository at this point in the history
Fixes a logic error that would send non-blocking DSHOT commands to all motors regardless of the selected motor index.
  • Loading branch information
etracer65 committed Mar 17, 2019
1 parent 10a27bc commit 9622b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/drivers/pwm_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ void pwmWriteDshotCommand(uint8_t index, uint8_t motorCount, uint8_t command, bo
if (index == i || index == ALL_MOTORS) {
commandControl->command[i] = command;
} else {
commandControl->command[i] = command;
commandControl->command[i] = DSHOT_CMD_MOTOR_STOP;
}
}
commandControl->waitingForIdle = !allMotorsAreIdle(motorCount);
Expand Down

0 comments on commit 9622b83

Please sign in to comment.