diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index f00f1ebb458f44b3946f403a7334860123e5bbdf..e6c954d5876c2d22ae98389b43f3271a5a66ace1 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -324,6 +324,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -349,9 +355,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/configurator/config/Configuration_adv.h b/Marlin/configurator/config/Configuration_adv.h index a04dba84785132a7492332cf3f822b7e5e90636a..67d422b9223b0a6dbaa86019655916f4a6978099 100644 --- a/Marlin/configurator/config/Configuration_adv.h +++ b/Marlin/configurator/config/Configuration_adv.h @@ -317,6 +317,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -342,9 +348,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/Felix/Configuration_adv.h b/Marlin/example_configurations/Felix/Configuration_adv.h index ec101fb2782b7f20c7abda0fb8677dcdc55827f6..29a2cf7e2ecc07b98bd47c77349ba432a1ebcfd8 100644 --- a/Marlin/example_configurations/Felix/Configuration_adv.h +++ b/Marlin/example_configurations/Felix/Configuration_adv.h @@ -330,6 +330,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -356,9 +362,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/Hephestos/Configuration_adv.h b/Marlin/example_configurations/Hephestos/Configuration_adv.h index e1bf689892b6daec10268443867485201e4bd22e..d513b2aa49420dc12c3d1af26b876f1bd0c0461a 100644 --- a/Marlin/example_configurations/Hephestos/Configuration_adv.h +++ b/Marlin/example_configurations/Hephestos/Configuration_adv.h @@ -330,6 +330,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -356,9 +362,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/K8200/Configuration_adv.h b/Marlin/example_configurations/K8200/Configuration_adv.h index 3be446fad48fd999517609c8dc16bd3b04b45d1c..dd98c6342b69d266f21273d9ebc61ae3246cd378 100644 --- a/Marlin/example_configurations/K8200/Configuration_adv.h +++ b/Marlin/example_configurations/K8200/Configuration_adv.h @@ -330,6 +330,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -356,9 +362,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/RigidBot/Configuration_adv.h b/Marlin/example_configurations/RigidBot/Configuration_adv.h index 86721094b0868c7c179addae64481016ed4ea932..d1e9b6fd7b921f3d36f1c0231dd159b14275909a 100644 --- a/Marlin/example_configurations/RigidBot/Configuration_adv.h +++ b/Marlin/example_configurations/RigidBot/Configuration_adv.h @@ -324,6 +324,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -349,9 +355,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/SCARA/Configuration_adv.h b/Marlin/example_configurations/SCARA/Configuration_adv.h index ced711390173f5dfbcb7ba6795ab224c0928bb60..399c65ca5a7c971a54f5664e173899d26e4a8f49 100644 --- a/Marlin/example_configurations/SCARA/Configuration_adv.h +++ b/Marlin/example_configurations/SCARA/Configuration_adv.h @@ -330,6 +330,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -356,9 +362,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/WITBOX/Configuration_adv.h b/Marlin/example_configurations/WITBOX/Configuration_adv.h index dc77b22e700746a6fd1edc2d884fe8820fa5df87..88ea6d48059e2c95de44dd1e0f5bb5aab36ad906 100644 --- a/Marlin/example_configurations/WITBOX/Configuration_adv.h +++ b/Marlin/example_configurations/WITBOX/Configuration_adv.h @@ -330,6 +330,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -356,9 +362,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/delta/biv2.5/Configuration_adv.h b/Marlin/example_configurations/delta/biv2.5/Configuration_adv.h index 9f2908e7e41fb4b7f8ae7b10363cbea887809969..5813f705f5c91af6a429a06778edf006ff341dff 100644 --- a/Marlin/example_configurations/delta/biv2.5/Configuration_adv.h +++ b/Marlin/example_configurations/delta/biv2.5/Configuration_adv.h @@ -331,6 +331,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -356,9 +362,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/delta/generic/Configuration_adv.h b/Marlin/example_configurations/delta/generic/Configuration_adv.h index 5a89463dd0c590cdeeb5cde352aac18b322b3cd6..23d5aa96820a14429ec6d2c96bfd22fb927ae7d7 100644 --- a/Marlin/example_configurations/delta/generic/Configuration_adv.h +++ b/Marlin/example_configurations/delta/generic/Configuration_adv.h @@ -331,6 +331,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -357,9 +363,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h index b43f71f36943135044388881d0d64569ec1382db..fee240608479d233f44ced70653a53eec4fd5562 100644 --- a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h +++ b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h @@ -330,6 +330,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -356,9 +362,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h index 15cc75c797d94eb5e32850ba20d354cb8c252f92..a1665ed2bc8207086fd31ef07670b8456550adb9 100644 --- a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h +++ b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h @@ -371,6 +371,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -396,9 +402,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/makibox/Configuration_adv.h b/Marlin/example_configurations/makibox/Configuration_adv.h index dcf45ea053a991af8d3122acd8623b2542aff471..9fc87aaa6bd92afdce9eb57d5fbdcc07fc057bce 100644 --- a/Marlin/example_configurations/makibox/Configuration_adv.h +++ b/Marlin/example_configurations/makibox/Configuration_adv.h @@ -330,6 +330,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -356,9 +362,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h index e238b45082b210b334bbe633574cbd6fce607206..ac96c9216d332e4ffd7637816d55c7a1e939aac8 100644 --- a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h +++ b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h @@ -330,6 +330,12 @@ // This allows hosts to request long names for files and folders with M33 //#define LONG_FILENAME_HOST_SUPPORT + // 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 // for dogm lcd displays you can choose some additional fonts: @@ -356,9 +362,6 @@ //#define WATCHDOG_RESET_MANUAL #endif -// Enable the option to stop SD printing when hitting and endstops, needs to be enabled from the LCD menu when this option is enabled. -//#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED - // @section lcd // Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process diff --git a/Marlin/stepper.h b/Marlin/stepper.h index 3fd2e4c25ef5e2ece48c87f2c1502359d121bb56..4df5bedc1144b1ed583a1bc36acb2092f46f0ca2 100644 --- a/Marlin/stepper.h +++ b/Marlin/stepper.h @@ -50,7 +50,7 @@ #endif #ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED -extern bool abort_on_endstop_hit; + extern bool abort_on_endstop_hit; #endif // Initialize and start the stepper motor subsystem