Movement/adjustment should be reverse of probe offset change

This commit is contained in:
Scott Lahteine 2017-04-04 20:16:21 -05:00
parent 361655828f
commit 8fa4209916

View file

@ -7984,7 +7984,7 @@ inline void gcode_M503() {
if (diff) { if (diff) {
for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++) for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++)
for (uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++) 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) #if ENABLED(ABL_BILINEAR_SUBDIVISION)
bed_level_virt_interpolate(); bed_level_virt_interpolate();
@ -7993,7 +7993,7 @@ inline void gcode_M503() {
#if ENABLED(BABYSTEPPING) #if ENABLED(BABYSTEPPING)
if (planner.abl_enabled) 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 #endif
zprobe_zoffset = value; zprobe_zoffset = value;