Replace ENDSTOPS_ONLY_FOR_HOMING with ENDSTOPS_ALWAYS_ON_DEFAULT
This commit is contained in:
parent
671634bf11
commit
0fcd3706dd
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -680,6 +680,8 @@
|
|||
#error "ABS_PREHEAT_HPB_TEMP is now PREHEAT_2_TEMP_BED. Please update your configuration."
|
||||
#elif defined(ABS_PREHEAT_FAN_SPEED)
|
||||
#error "ABS_PREHEAT_FAN_SPEED is now PREHEAT_2_FAN_SPEED. Please update your configuration."
|
||||
#elif defined(ENDSTOPS_ONLY_FOR_HOMING)
|
||||
#error "ENDSTOPS_ONLY_FOR_HOMING is deprecated. Use (disable) ENDSTOPS_ALWAYS_ON_DEFAULT instead."
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,10 +40,10 @@ Endstops endstops;
|
|||
|
||||
bool Endstops::enabled = true,
|
||||
Endstops::enabled_globally =
|
||||
#if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
|
||||
false
|
||||
#if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
|
||||
(true)
|
||||
#else
|
||||
true
|
||||
(false)
|
||||
#endif
|
||||
;
|
||||
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() {
|
||||
enable_globally(
|
||||
#if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
|
||||
false
|
||||
#if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
|
||||
(true)
|
||||
#else
|
||||
true
|
||||
(false)
|
||||
#endif
|
||||
);
|
||||
enable(true);
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
//#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -229,7 +229,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -445,7 +447,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -231,7 +231,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -447,7 +449,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
//#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -441,7 +443,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -441,7 +443,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -440,7 +442,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -228,7 +228,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -445,7 +447,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -441,7 +443,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
|
@ -223,7 +223,9 @@
|
|||
|
||||
// @section homing
|
||||
|
||||
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
||||
// If you want endstops to stay on (by default) even when not homing
|
||||
// enable this option. Override at any time with M120, M121.
|
||||
//#define ENDSTOPS_ALWAYS_ON_DEFAULT
|
||||
|
||||
// @section extras
|
||||
|
||||
|
@ -439,7 +441,6 @@
|
|||
// This option allows you to abort SD printing when any endstop is triggered.
|
||||
// This feature must be enabled with "M540 S1" or from the LCD menu.
|
||||
// To have any effect, endstops must be enabled during SD printing.
|
||||
// With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
||||
//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
|
Loading…
Reference in a new issue