Skip to content

Commit

Permalink
Record the motor value to _prev when blrsMotorSet is called with imme…
Browse files Browse the repository at this point in the history
…diate as true.
  • Loading branch information
lachlan2k committed Oct 28, 2017
1 parent f1ef3dc commit 71bd24d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libmtrmgr/src/mtrmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ bool blrsMotorSet(int port, int commanded, bool immediate) {
return false;
}
motorSet(port + 1, commanded * motor[port].inverted);
motor[port]._prev = commanded * motor[port].inverted;
mutexGive(mutex[port]);
}
motor[port].cmd = commanded * motor[port].inverted;
Expand Down

0 comments on commit 71bd24d

Please sign in to comment.