Skip to content

Commit

Permalink
fix bug in positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Mar 9, 2022
1 parent d0881d6 commit 0ce551b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/Bpod_stepper/StepperWrapper_TeensyStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void StepperWrapper_TeensyStep::setPosition(int32_t pos) {
noInterrupts();
_microPosition = pos;
interrupts();
_motor->setPosition(pos);
_motor->setPosition(0);
writePosition(pos);
}

Expand Down

0 comments on commit 0ce551b

Please sign in to comment.