Merge pull request #6362 from tcm0116/babystepping
Only queue babysteps if axis is in a known position
This commit is contained in:
commit
bf2548be4a
@ -431,6 +431,7 @@ class Temperature {
|
|||||||
#if ENABLED(BABYSTEPPING)
|
#if ENABLED(BABYSTEPPING)
|
||||||
|
|
||||||
static void babystep_axis(const AxisEnum axis, const int distance) {
|
static void babystep_axis(const AxisEnum axis, const int distance) {
|
||||||
|
if (axis_known_position[axis]) {
|
||||||
#if IS_CORE
|
#if IS_CORE
|
||||||
#if ENABLED(BABYSTEP_XY)
|
#if ENABLED(BABYSTEP_XY)
|
||||||
switch (axis) {
|
switch (axis) {
|
||||||
@ -457,6 +458,7 @@ class Temperature {
|
|||||||
babystepsTodo[axis] += distance;
|
babystepsTodo[axis] += distance;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif // BABYSTEPPING
|
#endif // BABYSTEPPING
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user