Browse Source

Replace ENDSTOPS_ONLY_FOR_HOMING with ENDSTOPS_ALWAYS_ON_DEFAULT

pull/1/head
Scott Lahteine 9 years ago
parent
commit
0fcd3706dd
  1. 5
      Marlin/Configuration_adv.h
  2. 2
      Marlin/SanityCheck.h
  3. 12
      Marlin/endstops.cpp
  4. 5
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  5. 5
      Marlin/example_configurations/Felix/Configuration_adv.h
  6. 5
      Marlin/example_configurations/Hephestos/Configuration_adv.h
  7. 5
      Marlin/example_configurations/Hephestos_2/Configuration_adv.h
  8. 5
      Marlin/example_configurations/K8200/Configuration_adv.h
  9. 5
      Marlin/example_configurations/K8400/Configuration_adv.h
  10. 5
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  11. 5
      Marlin/example_configurations/SCARA/Configuration_adv.h
  12. 5
      Marlin/example_configurations/TAZ4/Configuration_adv.h
  13. 5
      Marlin/example_configurations/WITBOX/Configuration_adv.h
  14. 5
      Marlin/example_configurations/delta/biv2.5/Configuration_adv.h
  15. 5
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  16. 5
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  17. 5
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  18. 5
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  19. 5
      Marlin/example_configurations/makibox/Configuration_adv.h
  20. 5
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h

5
Marlin/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

2
Marlin/SanityCheck.h

@ -680,6 +680,8 @@
#error "ABS_PREHEAT_HPB_TEMP is now PREHEAT_2_TEMP_BED. Please update your configuration." #error "ABS_PREHEAT_HPB_TEMP is now PREHEAT_2_TEMP_BED. Please update your configuration."
#elif defined(ABS_PREHEAT_FAN_SPEED) #elif defined(ABS_PREHEAT_FAN_SPEED)
#error "ABS_PREHEAT_FAN_SPEED is now PREHEAT_2_FAN_SPEED. Please update your configuration." #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 #endif
/** /**

12
Marlin/endstops.cpp

@ -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);

5
Marlin/example_configurations/Cartesio/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/Felix/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/Hephestos/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/Hephestos_2/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/K8200/Configuration_adv.h

@ -229,7 +229,9 @@
// @section homing // @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 // @section extras
@ -445,7 +447,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/K8400/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/RigidBot/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/SCARA/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/TAZ4/Configuration_adv.h

@ -231,7 +231,9 @@
// @section homing // @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 // @section extras
@ -447,7 +449,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/WITBOX/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/delta/biv2.5/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -441,7 +443,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/delta/generic/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -441,7 +443,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -440,7 +442,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h

@ -228,7 +228,9 @@
// @section homing // @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 // @section extras
@ -445,7 +447,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -441,7 +443,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/makibox/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

5
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h

@ -223,7 +223,9 @@
// @section homing // @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 // @section extras
@ -439,7 +441,6 @@
// This option allows you to abort SD printing when any endstop is triggered. // 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. // This feature must be enabled with "M540 S1" or from the LCD menu.
// To have any effect, endstops must be enabled during SD printing. // 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 //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#endif // SDSUPPORT #endif // SDSUPPORT

Loading…
Cancel
Save