Fix babystep include, typos in stepper.cpp

Fix #16881
This commit is contained in:
Scott Lahteine
2020-02-16 17:46:41 -06:00
parent 4c6f695bea
commit 99a5074372
3 changed files with 9 additions and 5 deletions

View File

@ -44,7 +44,7 @@ int16_t Babystep::accum;
void Babystep::step_axis(const AxisEnum axis) {
const int16_t curTodo = steps[BS_TODO_AXIS(axis)]; // get rid of volatile for performance
if (curTodo) {
stepper.babystep((AxisEnum)axis, curTodo > 0);
stepper.do_babystep((AxisEnum)axis, curTodo > 0);
if (curTodo > 0) steps[BS_TODO_AXIS(axis)]--; else steps[BS_TODO_AXIS(axis)]++;
}
}