Browse Source

🐛 Fix Polargraph G92 command (#24223)

Arthur Masson 2 years ago
parent
commit
af59056c09
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/geometry/G92.cpp

+ 1
- 1
Marlin/src/gcode/geometry/G92.cpp View File

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

Loading…
Cancel
Save