|
@ -40,10 +40,10 @@ Endstops endstops; |
|
|
|
|
|
|
|
|
bool Endstops::enabled = true, |
|
|
bool Endstops::enabled = true, |
|
|
Endstops::enabled_globally = |
|
|
Endstops::enabled_globally = |
|
|
#if ENABLED(ENDSTOPS_ONLY_FOR_HOMING) |
|
|
#if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT) |
|
|
false |
|
|
(true) |
|
|
#else |
|
|
#else |
|
|
true |
|
|
(false) |
|
|
#endif |
|
|
#endif |
|
|
; |
|
|
; |
|
|
volatile char Endstops::endstop_hit_bits; // use X_MIN, Y_MIN, Z_MIN and Z_MIN_PROBE as BIT value
|
|
|
volatile char Endstops::endstop_hit_bits; // use X_MIN, Y_MIN, Z_MIN and Z_MIN_PROBE as BIT value
|
|
@ -64,20 +64,6 @@ volatile char Endstops::endstop_hit_bits; // use X_MIN, Y_MIN, Z_MIN and Z_MIN_P |
|
|
* Class and Instance Methods |
|
|
* Class and Instance Methods |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
Endstops::Endstops() { |
|
|
|
|
|
enable_globally( |
|
|
|
|
|
#if ENABLED(ENDSTOPS_ONLY_FOR_HOMING) |
|
|
|
|
|
false |
|
|
|
|
|
#else |
|
|
|
|
|
true |
|
|
|
|
|
#endif |
|
|
|
|
|
); |
|
|
|
|
|
enable(true); |
|
|
|
|
|
#if HAS_BED_PROBE |
|
|
|
|
|
enable_z_probe(false); |
|
|
|
|
|
#endif |
|
|
|
|
|
} // Endstops::Endstops
|
|
|
|
|
|
|
|
|
|
|
|
void Endstops::init() { |
|
|
void Endstops::init() { |
|
|
|
|
|
|
|
|
#if HAS_X_MIN |
|
|
#if HAS_X_MIN |
|
|