|
@@ -6300,9 +6300,10 @@ inline void gcode_G92() {
|
6300
|
6300
|
|
6301
|
6301
|
if (IS_G92_0) LOOP_XYZE(i) {
|
6302
|
6302
|
if (parser.seenval(axis_codes[i])) {
|
6303
|
|
- const float v = parser.value_axis_units((AxisEnum)i),
|
6304
|
|
- d = current_position[i] - v;
|
6305
|
|
- if (d) {
|
|
6303
|
+ const float l = parser.value_axis_units((AxisEnum)i),
|
|
6304
|
+ v = i == E_AXIS ? l : LOGICAL_TO_NATIVE(l, i),
|
|
6305
|
+ d = v - current_position[i];
|
|
6306
|
+ if (!NEAR_ZERO(d)) {
|
6306
|
6307
|
if (i == E_AXIS) didE = true; else didXYZ = true;
|
6307
|
6308
|
#if IS_SCARA
|
6308
|
6309
|
current_position[i] = v; // For SCARA just set the position directly
|