|
@@ -9346,7 +9346,7 @@ inline void gcode_M226() {
|
9346
|
9346
|
const float offs = constrain(parser.value_axis_units((AxisEnum)a), -2, 2);
|
9347
|
9347
|
thermalManager.babystep_axis((AxisEnum)a, offs * planner.axis_steps_per_mm[a]);
|
9348
|
9348
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
9349
|
|
- if (a == Z_AXIS && parser.boolval('P', true)) mod_zprobe_zoffset(offs);
|
|
9349
|
+ if (a == Z_AXIS && (!parser.seen('P') || parser.value_bool())) mod_zprobe_zoffset(offs);
|
9350
|
9350
|
#endif
|
9351
|
9351
|
}
|
9352
|
9352
|
#else
|
|
@@ -9354,7 +9354,7 @@ inline void gcode_M226() {
|
9354
|
9354
|
const float offs = constrain(parser.value_axis_units(Z_AXIS), -2, 2);
|
9355
|
9355
|
thermalManager.babystep_axis(Z_AXIS, offs * planner.axis_steps_per_mm[Z_AXIS]);
|
9356
|
9356
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
9357
|
|
- if (parser.boolval('P', true)) mod_zprobe_zoffset(offs);
|
|
9357
|
+ if (!parser.seen('P') || parser.value_bool()) mod_zprobe_zoffset(offs);
|
9358
|
9358
|
#endif
|
9359
|
9359
|
}
|
9360
|
9360
|
#endif
|