|
@@ -22,21 +22,13 @@
|
22
|
22
|
|
23
|
23
|
#include "../../inc/MarlinConfig.h"
|
24
|
24
|
|
25
|
|
-#if ENABLED(SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
|
25
|
+#if ENABLED(DUET_SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
26
|
26
|
|
27
|
27
|
#include "../gcode.h"
|
28
|
28
|
#include "../../HAL/shared/Delay.h"
|
29
|
29
|
#include "../parser.h"
|
30
|
30
|
|
31
|
31
|
/**
|
32
|
|
- * M672 - Set/reset Duet Smart Effector sensitivity
|
33
|
|
- *
|
34
|
|
- * One of these is required:
|
35
|
|
- * S<sensitivity> - 0-255
|
36
|
|
- * R - Flag to reset sensitivity to default
|
37
|
|
- */
|
38
|
|
-
|
39
|
|
-/**
|
40
|
32
|
* The Marlin format for the M672 command is different than shown in the Duet Smart Effector
|
41
|
33
|
* documentation https://duet3d.dozuki.com/Wiki/Smart_effector_and_carriage_adapters_for_delta_printer
|
42
|
34
|
*
|
|
@@ -77,6 +69,13 @@ void M672_send(uint8_t b) { // bit rate requirement: 1KHz +/- 30%
|
77
|
69
|
}
|
78
|
70
|
}
|
79
|
71
|
|
|
72
|
+/**
|
|
73
|
+ * M672 - Set/reset Duet Smart Effector sensitivity
|
|
74
|
+ *
|
|
75
|
+ * One of these is required:
|
|
76
|
+ * S<sensitivity> - 0-255
|
|
77
|
+ * R - Flag to reset sensitivity to default
|
|
78
|
+ */
|
80
|
79
|
void GcodeSuite::M672() {
|
81
|
80
|
if (parser.seen('R')) {
|
82
|
81
|
M672_send(M672_ERASEBYTE);
|
|
@@ -96,4 +95,4 @@ void GcodeSuite::M672() {
|
96
|
95
|
OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW); // Keep Smart Effector in NORMAL mode
|
97
|
96
|
}
|
98
|
97
|
|
99
|
|
-#endif // SMART_EFFECTOR && SMART_EFFECTOR_MOD_PIN
|
|
98
|
+#endif // DUET_SMART_EFFECTOR && SMART_EFFECTOR_MOD_PIN
|