Skip to content

Commit

Permalink
Merge pull request #6 from tehkhop/immediate-update-fix
Browse files Browse the repository at this point in the history
Record _prev
  • Loading branch information
baylessj authored Oct 30, 2017
2 parents f1ef3dc + 71bd24d commit 76c7115
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 76c7115

Please sign in to comment.