|
@@ -30,6 +30,8 @@
|
30
|
30
|
#include "../inc/MarlinConfig.h"
|
31
|
31
|
#include <stdint.h>
|
32
|
32
|
|
|
33
|
+#define VALIDATE_HOMING_ENDSTOPS
|
|
34
|
+
|
33
|
35
|
enum EndstopEnum : char {
|
34
|
36
|
X_MIN,
|
35
|
37
|
Y_MIN,
|
|
@@ -144,8 +146,12 @@ class Endstops {
|
144
|
146
|
// Disable / Enable endstops based on ENSTOPS_ONLY_FOR_HOMING and global enable
|
145
|
147
|
static void not_homing();
|
146
|
148
|
|
147
|
|
- // If the last move failed to trigger an endstop, call kill
|
148
|
|
- static void validate_homing_move();
|
|
149
|
+ #if ENABLED(VALIDATE_HOMING_ENDSTOPS)
|
|
150
|
+ // If the last move failed to trigger an endstop, call kill
|
|
151
|
+ static void validate_homing_move();
|
|
152
|
+ #else
|
|
153
|
+ FORCE_INLINE static void validate_homing_move() { hit_on_purpose(); }
|
|
154
|
+ #endif
|
149
|
155
|
|
150
|
156
|
// Clear endstops (i.e., they were hit intentionally) to suppress the report
|
151
|
157
|
FORCE_INLINE static void hit_on_purpose() { hit_state = 0; }
|