|
@@ -52,7 +52,7 @@ void GcodeSuite::M290() {
|
52
|
52
|
const float offs = constrain(parser.value_axis_units((AxisEnum)a), -2, 2);
|
53
|
53
|
thermalManager.babystep_axis((AxisEnum)a, offs * planner.axis_steps_per_mm[a]);
|
54
|
54
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
55
|
|
- if (a == Z_AXIS && parser.boolval('P', true)) mod_zprobe_zoffset(offs);
|
|
55
|
+ if (a == Z_AXIS && (!parser.seen('P') || parser.value_bool())) mod_zprobe_zoffset(offs);
|
56
|
56
|
#endif
|
57
|
57
|
}
|
58
|
58
|
#else
|
|
@@ -60,7 +60,7 @@ void GcodeSuite::M290() {
|
60
|
60
|
const float offs = constrain(parser.value_axis_units(Z_AXIS), -2, 2);
|
61
|
61
|
thermalManager.babystep_axis(Z_AXIS, offs * planner.axis_steps_per_mm[Z_AXIS]);
|
62
|
62
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
63
|
|
- if (parser.boolval('P', true)) mod_zprobe_zoffset(offs);
|
|
63
|
+ if (!parser.seen('P') || parser.value_bool()) mod_zprobe_zoffset(offs);
|
64
|
64
|
#endif
|
65
|
65
|
}
|
66
|
66
|
#endif
|