|
|
@ -1916,15 +1916,15 @@ void Temperature::isr() {
|
|
|
|
} // temp_count >= OVERSAMPLENR
|
|
|
|
} // temp_count >= OVERSAMPLENR
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(BABYSTEPPING)
|
|
|
|
#if ENABLED(BABYSTEPPING)
|
|
|
|
for (uint8_t axis = X_AXIS; axis <= Z_AXIS; axis++) {
|
|
|
|
LOOP_XYZ(axis) {
|
|
|
|
int curTodo = babystepsTodo[axis]; //get rid of volatile for performance
|
|
|
|
int curTodo = babystepsTodo[axis]; //get rid of volatile for performance
|
|
|
|
|
|
|
|
|
|
|
|
if (curTodo > 0) {
|
|
|
|
if (curTodo > 0) {
|
|
|
|
stepper.babystep(axis,/*fwd*/true);
|
|
|
|
stepper.babystep((AxisEnum)axis,/*fwd*/true);
|
|
|
|
babystepsTodo[axis]--; //fewer to do next time
|
|
|
|
babystepsTodo[axis]--; //fewer to do next time
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (curTodo < 0) {
|
|
|
|
else if (curTodo < 0) {
|
|
|
|
stepper.babystep(axis,/*fwd*/false);
|
|
|
|
stepper.babystep((AxisEnum)axis,/*fwd*/false);
|
|
|
|
babystepsTodo[axis]++; //fewer to do next time
|
|
|
|
babystepsTodo[axis]++; //fewer to do next time
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|