Followup patch for G92
This commit is contained in:
parent
8e18e05d1d
commit
abb15bc30a
@ -6300,9 +6300,10 @@ inline void gcode_G92() {
|
||||
|
||||
if (IS_G92_0) LOOP_XYZE(i) {
|
||||
if (parser.seenval(axis_codes[i])) {
|
||||
const float v = parser.value_axis_units((AxisEnum)i),
|
||||
d = current_position[i] - v;
|
||||
if (d) {
|
||||
const float l = parser.value_axis_units((AxisEnum)i),
|
||||
v = i == E_AXIS ? l : LOGICAL_TO_NATIVE(l, i),
|
||||
d = v - current_position[i];
|
||||
if (!NEAR_ZERO(d)) {
|
||||
if (i == E_AXIS) didE = true; else didXYZ = true;
|
||||
#if IS_SCARA
|
||||
current_position[i] = v; // For SCARA just set the position directly
|
||||
|
Loading…
Reference in New Issue
Block a user