|
@@ -34,6 +34,10 @@
|
34
|
34
|
#include "../../core/serial.h"
|
35
|
35
|
#endif
|
36
|
36
|
|
|
37
|
+#if ENABLED(MESH_BED_LEVELING)
|
|
38
|
+ #include "../../feature/bedlevel/bedlevel.h"
|
|
39
|
+#endif
|
|
40
|
+
|
37
|
41
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
38
|
42
|
|
39
|
43
|
FORCE_INLINE void mod_zprobe_zoffset(const float &offs) {
|
|
@@ -60,13 +64,15 @@
|
60
|
64
|
/**
|
61
|
65
|
* M290: Babystepping
|
62
|
66
|
*
|
|
67
|
+ * Send 'R' or no parameters for a report.
|
|
68
|
+ *
|
63
|
69
|
* X<linear> - Distance to step X
|
64
|
70
|
* Y<linear> - Distance to step Y
|
65
|
71
|
* Z<linear> - Distance to step Z
|
66
|
72
|
* S<linear> - Distance to step Z (alias for Z)
|
67
|
73
|
*
|
68
|
74
|
* With BABYSTEP_ZPROBE_OFFSET:
|
69
|
|
- * P0 - Don't adjust the Z probe offset.
|
|
75
|
+ * P0 - Don't adjust the Z probe offset
|
70
|
76
|
*/
|
71
|
77
|
void GcodeSuite::M290() {
|
72
|
78
|
#if ENABLED(BABYSTEP_XY)
|
|
@@ -87,6 +93,42 @@ void GcodeSuite::M290() {
|
87
|
93
|
#endif
|
88
|
94
|
}
|
89
|
95
|
#endif
|
|
96
|
+
|
|
97
|
+ if (!parser.seen("XYZ") || parser.seen('R')) {
|
|
98
|
+ SERIAL_ECHO_START();
|
|
99
|
+
|
|
100
|
+ #if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
|
101
|
+ SERIAL_ECHOLNPAIR(MSG_PROBE_OFFSET " " MSG_Z, probe_offset[Z_AXIS]);
|
|
102
|
+ #endif
|
|
103
|
+
|
|
104
|
+ #if ENABLED(BABYSTEP_HOTEND_Z_OFFSET)
|
|
105
|
+ {
|
|
106
|
+ SERIAL_ECHOLNPAIR("Hotend ", int(active_extruder), "Offset"
|
|
107
|
+ #if ENABLED(BABYSTEP_XY)
|
|
108
|
+ " X", hotend_offset[X_AXIS][active_extruder],
|
|
109
|
+ " Y", hotend_offset[Y_AXIS][active_extruder],
|
|
110
|
+ #endif
|
|
111
|
+ " Z", hotend_offset[Z_AXIS][active_extruder]
|
|
112
|
+ );
|
|
113
|
+ }
|
|
114
|
+ #endif
|
|
115
|
+
|
|
116
|
+ #if ENABLED(MESH_BED_LEVELING)
|
|
117
|
+ SERIAL_ECHOLNPAIR("MBL Adjust Z", mbl.z_offset);
|
|
118
|
+ #endif
|
|
119
|
+
|
|
120
|
+ #if ENABLED(BABYSTEP_DISPLAY_TOTAL)
|
|
121
|
+ {
|
|
122
|
+ SERIAL_ECHOLNPAIR("Babystep"
|
|
123
|
+ #if ENABLED(BABYSTEP_XY)
|
|
124
|
+ " X", babystep.axis_total[X_AXIS],
|
|
125
|
+ " Y", babystep.axis_total[Y_AXIS],
|
|
126
|
+ #endif
|
|
127
|
+ " Z", babystep.axis_total[Z_AXIS]
|
|
128
|
+ );
|
|
129
|
+ }
|
|
130
|
+ #endif
|
|
131
|
+ }
|
90
|
132
|
}
|
91
|
133
|
|
92
|
134
|
#endif // BABYSTEPPING
|