Browse Source

🐛 Fix Polargraph G92 command (#24223)

FB4S_WIFI
Arthur Masson 3 years ago
committed by Scott Lahteine
parent
commit
8a301196e1
  1. 2
      Marlin/src/gcode/geometry/G92.cpp

2
Marlin/src/gcode/geometry/G92.cpp

@ -93,7 +93,7 @@ void GcodeSuite::G92() {
v = TERN0(HAS_EXTRUDERS, i == E_AXIS) ? l : LOGICAL_TO_NATIVE(l, i), // Axis position in NATIVE space (applying the existing offset) v = TERN0(HAS_EXTRUDERS, i == E_AXIS) ? l : LOGICAL_TO_NATIVE(l, i), // Axis position in NATIVE space (applying the existing offset)
d = v - current_position[i]; // How much is the current axis position altered by? d = v - current_position[i]; // How much is the current axis position altered by?
if (!NEAR_ZERO(d)) { if (!NEAR_ZERO(d)) {
#if HAS_POSITION_SHIFT && !IS_SCARA // When using workspaces... #if HAS_POSITION_SHIFT && NONE(IS_SCARA, POLARGRAPH) // When using workspaces...
if (TERN1(HAS_EXTRUDERS, i != E_AXIS)) { if (TERN1(HAS_EXTRUDERS, i != E_AXIS)) {
position_shift[i] += d; // ...most axes offset the workspace... position_shift[i] += d; // ...most axes offset the workspace...
update_workspace_offset((AxisEnum)i); update_workspace_offset((AxisEnum)i);

Loading…
Cancel
Save