@ -32,18 +32,27 @@
# include "../module/temperature.h"
# include "../module/temperature.h"
# include "../lcd/ultralcd.h"
# include "../lcd/ultralcd.h"
// TEST_ENDSTOP: test the old and the current status of an endstop
# if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
# define TEST_ENDSTOP(ENDSTOP) (TEST(current_endstop_bits & old_endstop_bits, ENDSTOP))
# include HAL_PATH(../HAL, endstop_interrupts.h)
# endif
// TEST_ENDSTOP: test the current status of an endstop
# define TEST_ENDSTOP(ENDSTOP) (TEST(current_endstop_bits, ENDSTOP))
# if HAS_BED_PROBE
# define ENDSTOPS_ENABLED (endstops.enabled || endstops.z_probe_enabled)
# else
# define ENDSTOPS_ENABLED endstops.enabled
# endif
Endstops endstops ;
Endstops endstops ;
// public:
// public:
bool Endstops : : enabled , Endstops : : enabled_globally ; // Initialized by settings.load()
bool Endstops : : enabled , Endstops : : enabled_globally ; // Initialized by settings.load()
volatile char Endstops : : endstop_hit_bits ; // use X_MIN, Y_MIN, Z_MIN and Z_MIN_PROBE as BIT value
volatile uint8_t Endstops : : endstop_hit_bits ; // use X_MIN, Y_MIN, Z_MIN and Z_MIN_PROBE as BIT value
Endstops : : esbits_t Endstops : : current_endstop_bits = 0 ,
Endstops : : esbits_t Endstops : : current_endstop_bits = 0 ;
Endstops : : old_endstop_bits = 0 ;
# if HAS_BED_PROBE
# if HAS_BED_PROBE
volatile bool Endstops : : z_probe_enabled = false ;
volatile bool Endstops : : z_probe_enabled = false ;
@ -196,8 +205,93 @@ void Endstops::init() {
# endif
# endif
# endif
# endif
# if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
setup_endstop_interrupts ( ) ;
# endif
// Enable endstops
enable_globally (
# if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
true
# else
false
# endif
) ;
} // Endstops::init
} // Endstops::init
// Called from ISR. A change was detected. Find out what happened!
void Endstops : : check_possible_change ( ) { if ( ENDSTOPS_ENABLED ) endstops . update ( ) ; }
// Called from ISR: Poll endstop state if required
void Endstops : : poll ( ) {
# if ENABLED(PINS_DEBUGGING)
endstops . run_monitor ( ) ; // report changes in endstop status
# endif
# if DISABLED(ENDSTOP_INTERRUPTS_FEATURE)
if ( ENDSTOPS_ENABLED ) endstops . update ( ) ;
# endif
}
void Endstops : : enable_globally ( const bool onoff ) {
enabled_globally = enabled = onoff ;
# if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
if ( onoff ) endstops . update ( ) ; // If enabling, update state now
# endif
}
// Enable / disable endstop checking
void Endstops : : enable ( const bool onoff ) {
enabled = onoff ;
# if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
if ( onoff ) endstops . update ( ) ; // If enabling, update state now
# endif
}
// Disable / Enable endstops based on ENSTOPS_ONLY_FOR_HOMING and global enable
void Endstops : : not_homing ( ) {
enabled = enabled_globally ;
# if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
if ( enabled ) endstops . update ( ) ; // If enabling, update state now
# endif
}
// Clear endstops (i.e., they were hit intentionally) to suppress the report
void Endstops : : hit_on_purpose ( ) {
endstop_hit_bits = 0 ;
# if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
if ( enabled ) endstops . update ( ) ; // If enabling, update state now
# endif
}
// Enable / disable endstop z-probe checking
# if HAS_BED_PROBE
void Endstops : : enable_z_probe ( bool onoff ) {
z_probe_enabled = onoff ;
# if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
if ( enabled ) endstops . update ( ) ; // If enabling, update state now
# endif
}
# endif
# if ENABLED(PINS_DEBUGGING)
void Endstops : : run_monitor ( ) {
if ( ! monitor_flag ) return ;
static uint8_t monitor_count = 16 ; // offset this check from the others
monitor_count + = _BV ( 1 ) ; // 15 Hz
monitor_count & = 0x7F ;
if ( ! monitor_count ) monitor ( ) ; // report changes in endstop status
}
# endif
void Endstops : : report_state ( ) {
void Endstops : : report_state ( ) {
if ( endstop_hit_bits ) {
if ( endstop_hit_bits ) {
# if ENABLED(ULTRA_LCD)
# if ENABLED(ULTRA_LCD)
@ -300,38 +394,41 @@ void Endstops::M119() {
# endif
# endif
} // Endstops::M119
} // Endstops::M119
// The following routines are called from an ISR context. It could be the temperature ISR, the
// endstop ISR or the Stepper ISR.
# if ENABLED(X_DUAL_ENDSTOPS)
# if ENABLED(X_DUAL_ENDSTOPS)
void Endstops : : test_dual_x_endstops ( const EndstopEnum es1 , const EndstopEnum es2 ) {
void Endstops : : test_dual_x_endstops ( const EndstopEnum es1 , const EndstopEnum es2 ) {
const byte x_test = TEST_ENDSTOP ( es1 ) | ( TEST_ENDSTOP ( es2 ) < < 1 ) ; // bit 0 for X, bit 1 for X2
const byte x_test = TEST_ENDSTOP ( es1 ) | ( TEST_ENDSTOP ( es2 ) < < 1 ) ; // bit 0 for X, bit 1 for X2
if ( x_test & & stepper . current_block- > steps [ X_AXIS ] > 0 ) {
if ( x_test & & stepper . movement_non_null( X_AXIS ) ) {
SBI ( endstop_hit_bits , X_MIN ) ;
SBI ( endstop_hit_bits , X_MIN ) ;
if ( ! stepper . performing_homing | | ( x_test = = 0x3 ) ) //if not performing home or if both endstops were trigged during homing...
if ( ! stepper . performing_homing | | ( x_test = = 0x3 ) ) //if not performing home or if both endstops were trigged during homing...
stepper . kill_current_block ( ) ;
stepper . quick_stop ( ) ;
}
}
}
}
# endif
# endif
# if ENABLED(Y_DUAL_ENDSTOPS)
# if ENABLED(Y_DUAL_ENDSTOPS)
void Endstops : : test_dual_y_endstops ( const EndstopEnum es1 , const EndstopEnum es2 ) {
void Endstops : : test_dual_y_endstops ( const EndstopEnum es1 , const EndstopEnum es2 ) {
const byte y_test = TEST_ENDSTOP ( es1 ) | ( TEST_ENDSTOP ( es2 ) < < 1 ) ; // bit 0 for Y, bit 1 for Y2
const byte y_test = TEST_ENDSTOP ( es1 ) | ( TEST_ENDSTOP ( es2 ) < < 1 ) ; // bit 0 for Y, bit 1 for Y2
if ( y_test & & stepper . current_block- > steps [ Y_AXIS ] > 0 ) {
if ( y_test & & stepper . movement_non_null( Y_AXIS ) ) {
SBI ( endstop_hit_bits , Y_MIN ) ;
SBI ( endstop_hit_bits , Y_MIN ) ;
if ( ! stepper . performing_homing | | ( y_test = = 0x3 ) ) //if not performing home or if both endstops were trigged during homing...
if ( ! stepper . performing_homing | | ( y_test = = 0x3 ) ) //if not performing home or if both endstops were trigged during homing...
stepper . kill_current_block ( ) ;
stepper . quick_stop ( ) ;
}
}
}
}
# endif
# endif
# if ENABLED(Z_DUAL_ENDSTOPS)
# if ENABLED(Z_DUAL_ENDSTOPS)
void Endstops : : test_dual_z_endstops ( const EndstopEnum es1 , const EndstopEnum es2 ) {
void Endstops : : test_dual_z_endstops ( const EndstopEnum es1 , const EndstopEnum es2 ) {
const byte z_test = TEST_ENDSTOP ( es1 ) | ( TEST_ENDSTOP ( es2 ) < < 1 ) ; // bit 0 for Z, bit 1 for Z2
const byte z_test = TEST_ENDSTOP ( es1 ) | ( TEST_ENDSTOP ( es2 ) < < 1 ) ; // bit 0 for Z, bit 1 for Z2
if ( z_test & & stepper . current_block- > steps [ Z_AXIS ] > 0 ) {
if ( z_test & & stepper . movement_non_null( Z_AXIS ) ) {
SBI ( endstop_hit_bits , Z_MIN ) ;
SBI ( endstop_hit_bits , Z_MIN ) ;
if ( ! stepper . performing_homing | | ( z_test = = 0x3 ) ) //if not performing home or if both endstops were trigged during homing...
if ( ! stepper . performing_homing | | ( z_test = = 0x3 ) ) //if not performing home or if both endstops were trigged during homing...
stepper . kill_current_block ( ) ;
stepper . quick_stop ( ) ;
}
}
}
}
# endif
# endif
// Check endstops - C alled from ISR!
// Check endstops - C ould be c alled from ISR!
void Endstops : : update ( ) {
void Endstops : : update ( ) {
# define _ENDSTOP(AXIS, MINMAX) AXIS ##_## MINMAX
# define _ENDSTOP(AXIS, MINMAX) AXIS ##_## MINMAX
@ -358,9 +455,9 @@ void Endstops::update() {
if ( G38_move ) {
if ( G38_move ) {
UPDATE_ENDSTOP_BIT ( Z , MIN_PROBE ) ;
UPDATE_ENDSTOP_BIT ( Z , MIN_PROBE ) ;
if ( TEST_ENDSTOP ( _ENDSTOP ( Z , MIN_PROBE ) ) ) {
if ( TEST_ENDSTOP ( _ENDSTOP ( Z , MIN_PROBE ) ) ) {
if ( stepper . current_block- > steps [ _AXIS ( X ) ] > 0 ) { _ENDSTOP_HIT ( X , MIN ) ; planner . endstop_triggered ( _AXIS ( X ) ) ; }
if ( stepper . movement_non_null( _AXIS ( X ) ) ) { _ENDSTOP_HIT ( X , MIN ) ; planner . endstop_triggered ( _AXIS ( X ) ) ; }
else if ( stepper . current_block- > steps [ _AXIS ( Y ) ] > 0 ) { _ENDSTOP_HIT ( Y , MIN ) ; planner . endstop_triggered ( _AXIS ( Y ) ) ; }
else if ( stepper . movement_non_null( _AXIS ( Y ) ) ) { _ENDSTOP_HIT ( Y , MIN ) ; planner . endstop_triggered ( _AXIS ( Y ) ) ; }
else if ( stepper . current_block- > steps [ _AXIS ( Z ) ] > 0 ) { _ENDSTOP_HIT ( Z , MIN ) ; planner . endstop_triggered ( _AXIS ( Z ) ) ; }
else if ( stepper . movement_non_null( _AXIS ( Z ) ) ) { _ENDSTOP_HIT ( Z , MIN ) ; planner . endstop_triggered ( _AXIS ( Z ) ) ; }
G38_endstop_hit = true ;
G38_endstop_hit = true ;
}
}
}
}
@ -371,7 +468,7 @@ void Endstops::update() {
*/
*/
# if IS_CORE
# if IS_CORE
# define S_(N) stepper. current_block->steps[CORE_AXIS_##N]
# define S_(N) stepper. movement_non_null(CORE_AXIS_##N)
# define D_(N) stepper.motor_direction(CORE_AXIS_##N)
# define D_(N) stepper.motor_direction(CORE_AXIS_##N)
# endif
# endif
@ -391,7 +488,7 @@ void Endstops::update() {
# define X_MOVE_TEST ( S_(1) != S_(2) || (S_(1) > 0 && D_(1) X_CMP D_(2)) )
# define X_MOVE_TEST ( S_(1) != S_(2) || (S_(1) > 0 && D_(1) X_CMP D_(2)) )
# define X_AXIS_HEAD X_HEAD
# define X_AXIS_HEAD X_HEAD
# else
# else
# define X_MOVE_TEST stepper. current_block->steps[X_AXIS] > 0
# define X_MOVE_TEST stepper. movement_non_null(X_AXIS)
# define X_AXIS_HEAD X_AXIS
# define X_AXIS_HEAD X_AXIS
# endif
# endif
@ -411,7 +508,7 @@ void Endstops::update() {
# define Y_MOVE_TEST ( S_(1) != S_(2) || (S_(1) > 0 && D_(1) Y_CMP D_(2)) )
# define Y_MOVE_TEST ( S_(1) != S_(2) || (S_(1) > 0 && D_(1) Y_CMP D_(2)) )
# define Y_AXIS_HEAD Y_HEAD
# define Y_AXIS_HEAD Y_HEAD
# else
# else
# define Y_MOVE_TEST stepper. current_block->steps[Y_AXIS] > 0
# define Y_MOVE_TEST stepper. movement_non_null(Y_AXIS)
# define Y_AXIS_HEAD Y_AXIS
# define Y_AXIS_HEAD Y_AXIS
# endif
# endif
@ -431,13 +528,13 @@ void Endstops::update() {
# define Z_MOVE_TEST ( S_(1) != S_(2) || (S_(1) > 0 && D_(1) Z_CMP D_(2)) )
# define Z_MOVE_TEST ( S_(1) != S_(2) || (S_(1) > 0 && D_(1) Z_CMP D_(2)) )
# define Z_AXIS_HEAD Z_HEAD
# define Z_AXIS_HEAD Z_HEAD
# else
# else
# define Z_MOVE_TEST stepper. current_block->steps[Z_AXIS] > 0
# define Z_MOVE_TEST stepper. movement_non_null(Z_AXIS)
# define Z_AXIS_HEAD Z_AXIS
# define Z_AXIS_HEAD Z_AXIS
# endif
# endif
// With Dual X, endstops are only checked in the homing direction for the active extruder
// With Dual X, endstops are only checked in the homing direction for the active extruder
# if ENABLED(DUAL_X_CARRIAGE)
# if ENABLED(DUAL_X_CARRIAGE)
# define E0_ACTIVE stepper. current_block->active_extruder == 0
# define E0_ACTIVE stepper. movement_extruder() == 0
# define X_MIN_TEST ((X_HOME_DIR < 0 && E0_ACTIVE) || (X2_HOME_DIR < 0 && !E0_ACTIVE))
# define X_MIN_TEST ((X_HOME_DIR < 0 && E0_ACTIVE) || (X2_HOME_DIR < 0 && !E0_ACTIVE))
# define X_MAX_TEST ((X_HOME_DIR > 0 && E0_ACTIVE) || (X2_HOME_DIR > 0 && !E0_ACTIVE))
# define X_MAX_TEST ((X_HOME_DIR > 0 && E0_ACTIVE) || (X2_HOME_DIR > 0 && !E0_ACTIVE))
# else
# else
@ -448,126 +545,119 @@ void Endstops::update() {
/**
/**
* Check and update endstops according to conditions
* Check and update endstops according to conditions
*/
*/
if ( stepper . current_block ) {
if ( X_MOVE_TEST ) {
if ( stepper . motor_direction ( X_AXIS_HEAD ) ) { // -direction
if ( X_MOVE_TEST ) {
# if HAS_X_MIN
if ( stepper . motor_direction ( X_AXIS_HEAD ) ) { // -direction
# if ENABLED(X_DUAL_ENDSTOPS)
# if HAS_X_MIN
UPDATE_ENDSTOP_BIT ( X , MIN ) ;
# if ENABLED(X_DUAL_ENDSTOPS)
# if HAS_X2_MIN
UPDATE_ENDSTOP_BIT ( X , MIN ) ;
UPDATE_ENDSTOP_BIT ( X2 , MIN ) ;
# if HAS_X2_MIN
UPDATE_ENDSTOP_BIT ( X2 , MIN ) ;
# else
COPY_BIT ( current_endstop_bits , X_MIN , X2_MIN ) ;
# endif
test_dual_x_endstops ( X_MIN , X2_MIN ) ;
# else
# else
if ( X_MIN_TEST ) UPDATE_ENDSTOP ( X , MIN) ;
COPY_BIT ( current_endstop_bits , X_MIN , X2_MIN ) ;
# endif
# endif
test_dual_x_endstops ( X_MIN , X2_MIN ) ;
# else
if ( X_MIN_TEST ) UPDATE_ENDSTOP ( X , MIN ) ;
# endif
# endif
}
# endif
else { // +direction
}
# if HAS_X_MAX
else { // +direction
# if ENABLED(X_DUAL_ENDSTOPS)
# if HAS_X_MAX
UPDATE_ENDSTOP_BIT ( X , MAX ) ;
# if ENABLED(X_DUAL_ENDSTOPS)
# if HAS_X2_MAX
UPDATE_ENDSTOP_BIT ( X , MAX ) ;
UPDATE_ENDSTOP_BIT ( X2 , MAX ) ;
# if HAS_X2_MAX
# else
UPDATE_ENDSTOP_BIT ( X2 , MAX ) ;
COPY_BIT ( current_endstop_bits , X_MAX , X2_MAX ) ;
# endif
test_dual_x_endstops ( X_MAX , X2_MAX ) ;
# else
# else
if ( X_MAX_TEST ) UPDATE_ENDSTOP ( X , MAX) ;
COPY_BIT ( current_endstop_bits , X_MAX , X2_MAX ) ;
# endif
# endif
test_dual_x_endstops ( X_MAX , X2_MAX ) ;
# else
if ( X_MAX_TEST ) UPDATE_ENDSTOP ( X , MAX ) ;
# endif
# endif
}
# endif
}
}
}
if ( Y_MOVE_TEST ) {
if ( Y_MOVE_TEST ) {
if ( stepper . motor_direction ( Y_AXIS_HEAD ) ) { // -direction
if ( stepper . motor_direction ( Y_AXIS_HEAD ) ) { // -direction
# if HAS_Y_MIN
# if HAS_Y_MIN
# if ENABLED(Y_DUAL_ENDSTOPS)
# if ENABLED(Y_DUAL_ENDSTOPS)
UPDATE_ENDSTOP_BIT ( Y , MIN ) ;
UPDATE_ENDSTOP_BIT ( Y , MIN ) ;
# if HAS_Y2_MIN
# if HAS_Y2_MIN
UPDATE_ENDSTOP_BIT ( Y2 , MIN ) ;
UPDATE_ENDSTOP_BIT ( Y2 , MIN ) ;
# else
COPY_BIT ( current_endstop_bits , Y_MIN , Y2_MIN ) ;
# endif
test_dual_y_endstops ( Y_MIN , Y2_MIN ) ;
# else
# else
UPDATE_ENDSTOP( Y , MIN) ;
COPY_BIT ( current_endstop_bits , Y_MIN , Y2_MIN ) ;
# endif
# endif
test_dual_y_endstops ( Y_MIN , Y2_MIN ) ;
# else
UPDATE_ENDSTOP ( Y , MIN ) ;
# endif
# endif
}
# endif
else { // +direction
}
# if HAS_Y_MAX
else { // +direction
# if ENABLED(Y_DUAL_ENDSTOPS)
# if HAS_Y_MAX
UPDATE_ENDSTOP_BIT ( Y , MAX ) ;
# if ENABLED(Y_DUAL_ENDSTOPS)
# if HAS_Y2_MAX
UPDATE_ENDSTOP_BIT ( Y , MAX ) ;
UPDATE_ENDSTOP_BIT ( Y2 , MAX ) ;
# if HAS_Y2_MAX
# else
UPDATE_ENDSTOP_BIT ( Y2 , MAX ) ;
COPY_BIT ( current_endstop_bits , Y_MAX , Y2_MAX ) ;
# endif
test_dual_y_endstops ( Y_MAX , Y2_MAX ) ;
# else
# else
UPDATE_ENDSTOP( Y , MAX) ;
COPY_BIT ( current_endstop_bits , Y_MAX , Y2_MAX ) ;
# endif
# endif
test_dual_y_endstops ( Y_MAX , Y2_MAX ) ;
# else
UPDATE_ENDSTOP ( Y , MAX ) ;
# endif
# endif
}
# endif
}
}
}
if ( Z_MOVE_TEST ) {
if ( Z_MOVE_TEST ) {
if ( stepper . motor_direction ( Z_AXIS_HEAD ) ) { // Z -direction. Gantry down, bed up.
if ( stepper . motor_direction ( Z_AXIS_HEAD ) ) { // Z -direction. Gantry down, bed up.
# if HAS_Z_MIN
# if HAS_Z_MIN
# if ENABLED(Z_DUAL_ENDSTOPS)
# if ENABLED(Z_DUAL_ENDSTOPS)
UPDATE_ENDSTOP_BIT ( Z , MIN ) ;
UPDATE_ENDSTOP_BIT ( Z , MIN ) ;
# if HAS_Z2_MIN
# if HAS_Z2_MIN
UPDATE_ENDSTOP_BIT ( Z2 , MIN ) ;
UPDATE_ENDSTOP_BIT ( Z2 , MIN ) ;
# else
# else
COPY_BIT ( current_endstop_bits , Z_MIN , Z2_MIN ) ;
COPY_BIT ( current_endstop_bits , Z_MIN , Z2_MIN ) ;
# endif
# endif
test_dual_z_endstops ( Z_MIN , Z2_MIN ) ;
test_dual_z_endstops ( Z_MIN , Z2_MIN ) ;
# else
# if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
if ( z_probe_enabled ) UPDATE_ENDSTOP ( Z , MIN ) ;
# else
# else
# if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
UPDATE_ENDSTOP ( Z , MIN ) ;
if ( z_probe_enabled ) UPDATE_ENDSTOP ( Z , MIN ) ;
# else
UPDATE_ENDSTOP ( Z , MIN ) ;
# endif
# endif
# endif
# endif
# endif
# endif
// When closing the gap check the enabled probe
// When closing the gap check the enabled probe
# if ENABLED(Z_MIN_PROBE_ENDSTOP)
# if ENABLED(Z_MIN_PROBE_ENDSTOP)
if ( z_probe_enabled ) {
if ( z_probe_enabled ) {
UPDATE_ENDSTOP ( Z , MIN_PROBE ) ;
UPDATE_ENDSTOP ( Z , MIN_PROBE ) ;
if ( TEST_ENDSTOP ( Z_MIN_PROBE ) ) SBI ( endstop_hit_bits , Z_MIN_PROBE ) ;
if ( TEST_ENDSTOP ( Z_MIN_PROBE ) ) SBI ( endstop_hit_bits , Z_MIN_PROBE ) ;
}
}
# endif
# endif
}
}
else { // Z +direction. Gantry up, bed down.
else { // Z +direction. Gantry up, bed down.
# if HAS_Z_MAX
# if HAS_Z_MAX
// Check both Z dual endstops
// Check both Z dual endstops
# if ENABLED(Z_DUAL_ENDSTOPS)
# if ENABLED(Z_DUAL_ENDSTOPS)
UPDATE_ENDSTOP_BIT ( Z , MAX ) ;
UPDATE_ENDSTOP_BIT ( Z , MAX ) ;
# if HAS_Z2_MAX
# if HAS_Z2_MAX
UPDATE_ENDSTOP_BIT ( Z2 , MAX ) ;
UPDATE_ENDSTOP_BIT ( Z2 , MAX ) ;
# else
# else
COPY_BIT ( current_endstop_bits , Z_MAX , Z2_MAX ) ;
COPY_BIT ( current_endstop_bits , Z_MAX , Z2_MAX ) ;
# endif
test_dual_z_endstops ( Z_MAX , Z2_MAX ) ;
// If this pin is not hijacked for the bed probe
// then it belongs to the Z endstop
# elif DISABLED(Z_MIN_PROBE_ENDSTOP) || Z_MAX_PIN != Z_MIN_PROBE_PIN
UPDATE_ENDSTOP ( Z , MAX ) ;
# endif
# endif
test_dual_z_endstops ( Z_MAX , Z2_MAX ) ;
// If this pin is not hijacked for the bed probe
// then it belongs to the Z endstop
# elif DISABLED(Z_MIN_PROBE_ENDSTOP) || Z_MAX_PIN != Z_MIN_PROBE_PIN
UPDATE_ENDSTOP ( Z , MAX ) ;
# endif
# endif
}
# endif
}
}
}
} // stepper.current_block
old_endstop_bits = current_endstop_bits ;
} // Endstops::update()
} // Endstops::update()
# if ENABLED(PINS_DEBUGGING)
# if ENABLED(PINS_DEBUGGING)