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