|
@@ -9314,7 +9314,7 @@ inline void gcode_M226() {
|
9314
|
9314
|
for (uint8_t a = X_AXIS; a <= Z_AXIS; a++)
|
9315
|
9315
|
if (parser.seenval(axis_codes[a]) || (a == Z_AXIS && parser.seenval('S'))) {
|
9316
|
9316
|
float offs = parser.value_axis_units(a);
|
9317
|
|
- constrain(offs, -2, 2);
|
|
9317
|
+ offs = constrain(offs, -2, 2);
|
9318
|
9318
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
9319
|
9319
|
if (a == Z_AXIS) {
|
9320
|
9320
|
zprobe_zoffset += offs;
|
|
@@ -9326,7 +9326,7 @@ inline void gcode_M226() {
|
9326
|
9326
|
#else
|
9327
|
9327
|
if (parser.seenval('Z') || parser.seenval('S')) {
|
9328
|
9328
|
float offs = parser.value_axis_units(Z_AXIS);
|
9329
|
|
- constrain(offs, -2, 2);
|
|
9329
|
+ offs = constrain(offs, -2, 2);
|
9330
|
9330
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
9331
|
9331
|
zprobe_zoffset += offs;
|
9332
|
9332
|
refresh_zprobe_zoffset(); // This will babystep the axis
|