|
@@ -29,6 +29,10 @@
|
29
|
29
|
#include "../../module/temperature.h"
|
30
|
30
|
#include "../../module/planner.h"
|
31
|
31
|
|
|
32
|
+#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
|
33
|
+ #include "../../core/serial.h"
|
|
34
|
+#endif
|
|
35
|
+
|
32
|
36
|
/**
|
33
|
37
|
* M290: Babystepping
|
34
|
38
|
*/
|
|
@@ -39,7 +43,7 @@ void GcodeSuite::M290() {
|
39
|
43
|
const float offs = constrain(parser.value_axis_units((AxisEnum)a), -2, 2);
|
40
|
44
|
thermalManager.babystep_axis((AxisEnum)a, offs * planner.axis_steps_per_mm[a]);
|
41
|
45
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
42
|
|
- zprobe_zoffset += offs;
|
|
46
|
+ if (a == Z_AXIS) zprobe_zoffset += offs;
|
43
|
47
|
#endif
|
44
|
48
|
}
|
45
|
49
|
#else
|
|
@@ -51,6 +55,10 @@ void GcodeSuite::M290() {
|
51
|
55
|
#endif
|
52
|
56
|
}
|
53
|
57
|
#endif
|
|
58
|
+ #if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
|
59
|
+ SERIAL_ECHO_START();
|
|
60
|
+ SERIAL_ECHOLNPAIR(MSG_PROBE_Z_OFFSET ": ", zprobe_zoffset);
|
|
61
|
+ #endif
|
54
|
62
|
}
|
55
|
63
|
|
56
|
64
|
#endif // BABYSTEPPING
|