Skip to content

Commit

Permalink
fix stepper_stop() to stop only the stepper from the list.
Browse files Browse the repository at this point in the history
  • Loading branch information
chowette committed Nov 4, 2020
1 parent e4d5059 commit 3abf0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/sys/drivers/stepper.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ void stepper_stop(int mask, uint8_t async) {
uint8_t channel = 0;

while (testMask != (1 << (NSTEP - 1))) {
if (start_mask & testMask) {
if (start_mask & testMask & mask) {
RMTMEM.chan[channel].data32[0].val = 0;
RMT.conf_ch[channel].conf1.tx_start = 0;
RMT.conf_ch[channel].conf1.mem_rd_rst = 1;
Expand Down

0 comments on commit 3abf0ea

Please sign in to comment.