|
|
@ -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
|
|
|
@ -66,10 +66,10 @@ volatile char Endstops::endstop_hit_bits; // use X_MIN, Y_MIN, Z_MIN and Z_MIN_P
|
|
|
|
|
|
|
|
|
|
|
|
Endstops::Endstops() {
|
|
|
|
Endstops::Endstops() {
|
|
|
|
enable_globally(
|
|
|
|
enable_globally(
|
|
|
|
#if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
|
|
|
|
#if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
|
|
|
|
false
|
|
|
|
(true)
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
true
|
|
|
|
(false)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
);
|
|
|
|
);
|
|
|
|
enable(true);
|
|
|
|
enable(true);
|
|
|
|