mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-28 14:24:34 +00:00
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 (IS_G92_0) LOOP_XYZE(i) {
|
||||||
if (parser.seenval(axis_codes[i])) {
|
if (parser.seenval(axis_codes[i])) {
|
||||||
const float v = parser.value_axis_units((AxisEnum)i),
|
const float l = parser.value_axis_units((AxisEnum)i),
|
||||||
d = current_position[i] - v;
|
v = i == E_AXIS ? l : LOGICAL_TO_NATIVE(l, i),
|
||||||
if (d) {
|
d = v - current_position[i];
|
||||||
|
if (!NEAR_ZERO(d)) {
|
||||||
if (i == E_AXIS) didE = true; else didXYZ = true;
|
if (i == E_AXIS) didE = true; else didXYZ = true;
|
||||||
#if IS_SCARA
|
#if IS_SCARA
|
||||||
current_position[i] = v; // For SCARA just set the position directly
|
current_position[i] = v; // For SCARA just set the position directly
|
||||||
|
Loading…
Reference in New Issue
Block a user