|
@@ -20,6 +20,13 @@
|
20
|
20
|
*
|
21
|
21
|
*/
|
22
|
22
|
|
|
23
|
+#include "../../inc/MarlinConfig.h"
|
|
24
|
+
|
|
25
|
+#if HAS_M206_COMMAND
|
|
26
|
+
|
|
27
|
+#include "../gcode.h"
|
|
28
|
+#include "../../module/motion.h"
|
|
29
|
+
|
23
|
30
|
/**
|
24
|
31
|
* M206: Set Additional Homing Offset (X Y Z). SCARA aliases T=X, P=Y
|
25
|
32
|
*
|
|
@@ -27,7 +34,7 @@
|
27
|
34
|
* *** M206 for SCARA will remain enabled in 1.1.x for compatibility.
|
28
|
35
|
* *** In the 2.0 release, it will simply be disabled by default.
|
29
|
36
|
*/
|
30
|
|
-void gcode_M206() {
|
|
37
|
+void GcodeSuite::M206() {
|
31
|
38
|
LOOP_XYZ(i)
|
32
|
39
|
if (parser.seen(axis_codes[i]))
|
33
|
40
|
set_home_offset((AxisEnum)i, parser.value_linear_units());
|
|
@@ -40,3 +47,5 @@ void gcode_M206() {
|
40
|
47
|
SYNC_PLAN_POSITION_KINEMATIC();
|
41
|
48
|
report_current_position();
|
42
|
49
|
}
|
|
50
|
+
|
|
51
|
+#endif // HAS_M206_COMMAND
|