Browse Source

Movement/adjustment should be reverse of probe offset change

Scott Lahteine 8 years ago
parent
commit
8fa4209916
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

@@ -7984,7 +7984,7 @@ inline void gcode_M503() {
7984 7984
           if (diff) {
7985 7985
             for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++)
7986 7986
               for (uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++)
7987
-                bed_level_grid[x][y] += diff;
7987
+                bed_level_grid[x][y] -= diff;
7988 7988
           }
7989 7989
           #if ENABLED(ABL_BILINEAR_SUBDIVISION)
7990 7990
             bed_level_virt_interpolate();
@@ -7993,7 +7993,7 @@ inline void gcode_M503() {
7993 7993
 
7994 7994
         #if ENABLED(BABYSTEPPING)
7995 7995
           if (planner.abl_enabled)
7996
-            thermalManager.babystep_axis(Z_AXIS, lround((value - zprobe_zoffset) * planner.axis_steps_per_mm[Z_AXIS]));
7996
+            thermalManager.babystep_axis(Z_AXIS, lround(-(value - zprobe_zoffset) * planner.axis_steps_per_mm[Z_AXIS]));
7997 7997
         #endif
7998 7998
 
7999 7999
         zprobe_zoffset = value;

Loading…
Cancel
Save