From 8fa420991642855cd733d211a94a97a96531cbf9 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 4 Apr 2017 20:16:21 -0500 Subject: [PATCH] Movement/adjustment should be reverse of probe offset change --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 337c7f787..6f593812e 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -7984,7 +7984,7 @@ inline void gcode_M503() { if (diff) { for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++) for (uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++) - bed_level_grid[x][y] += diff; + bed_level_grid[x][y] -= diff; } #if ENABLED(ABL_BILINEAR_SUBDIVISION) bed_level_virt_interpolate(); @@ -7993,7 +7993,7 @@ inline void gcode_M503() { #if ENABLED(BABYSTEPPING) if (planner.abl_enabled) - thermalManager.babystep_axis(Z_AXIS, lround((value - zprobe_zoffset) * planner.axis_steps_per_mm[Z_AXIS])); + thermalManager.babystep_axis(Z_AXIS, lround(-(value - zprobe_zoffset) * planner.axis_steps_per_mm[Z_AXIS])); #endif zprobe_zoffset = value;