|
@@ -36,7 +36,7 @@ void GcodeSuite::M290() {
|
36
|
36
|
#if ENABLED(BABYSTEP_XY)
|
37
|
37
|
for (uint8_t a = X_AXIS; a <= Z_AXIS; a++)
|
38
|
38
|
if (parser.seenval(axis_codes[a]) || (a == Z_AXIS && parser.seenval('S'))) {
|
39
|
|
- float offs = constrain(parser.value_axis_units(a), -2, 2);
|
|
39
|
+ const float offs = constrain(parser.value_axis_units(a), -2, 2);
|
40
|
40
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
41
|
41
|
if (a == Z_AXIS) {
|
42
|
42
|
zprobe_zoffset += offs;
|
|
@@ -47,7 +47,7 @@ void GcodeSuite::M290() {
|
47
|
47
|
}
|
48
|
48
|
#else
|
49
|
49
|
if (parser.seenval('Z') || parser.seenval('S')) {
|
50
|
|
- float offs = constrain(parser.value_axis_units(Z_AXIS), -2, 2);
|
|
50
|
+ const float offs = constrain(parser.value_axis_units(Z_AXIS), -2, 2);
|
51
|
51
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
52
|
52
|
zprobe_zoffset += offs;
|
53
|
53
|
refresh_zprobe_zoffset(); // This will babystep the axis
|