Explorar el Código

Merge pull request #4306 from thinkyhead/rc_stupid_name_okbai

ENDSTOPS_ONLY_FOR_HOMING is confusing
Scott Lahteine hace 9 años
padre
commit
253f843da5
Se han modificado 45 ficheros con 96 adiciones y 59 borrados
  1. 1
    0
      Marlin/Configuration.h
  2. 3
    2
      Marlin/Configuration_adv.h
  3. 5
    5
      Marlin/Marlin_main.cpp
  4. 2
    0
      Marlin/SanityCheck.h
  5. 9
    0
      Marlin/configuration_store.cpp
  6. 3
    17
      Marlin/endstops.cpp
  7. 1
    1
      Marlin/endstops.h
  8. 1
    0
      Marlin/example_configurations/Cartesio/Configuration.h
  9. 3
    2
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  10. 1
    0
      Marlin/example_configurations/Felix/Configuration.h
  11. 3
    2
      Marlin/example_configurations/Felix/Configuration_adv.h
  12. 1
    0
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  13. 1
    0
      Marlin/example_configurations/Hephestos/Configuration.h
  14. 3
    2
      Marlin/example_configurations/Hephestos/Configuration_adv.h
  15. 1
    0
      Marlin/example_configurations/Hephestos_2/Configuration.h
  16. 3
    2
      Marlin/example_configurations/Hephestos_2/Configuration_adv.h
  17. 1
    0
      Marlin/example_configurations/K8200/Configuration.h
  18. 3
    2
      Marlin/example_configurations/K8200/Configuration_adv.h
  19. 1
    0
      Marlin/example_configurations/K8400/Configuration.h
  20. 3
    2
      Marlin/example_configurations/K8400/Configuration_adv.h
  21. 1
    0
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  22. 1
    0
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  23. 1
    0
      Marlin/example_configurations/RigidBot/Configuration.h
  24. 3
    2
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  25. 1
    0
      Marlin/example_configurations/SCARA/Configuration.h
  26. 3
    2
      Marlin/example_configurations/SCARA/Configuration_adv.h
  27. 1
    0
      Marlin/example_configurations/TAZ4/Configuration.h
  28. 3
    2
      Marlin/example_configurations/TAZ4/Configuration_adv.h
  29. 1
    0
      Marlin/example_configurations/WITBOX/Configuration.h
  30. 3
    2
      Marlin/example_configurations/WITBOX/Configuration_adv.h
  31. 1
    0
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  32. 1
    0
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  33. 3
    2
      Marlin/example_configurations/delta/biv2.5/Configuration_adv.h
  34. 1
    0
      Marlin/example_configurations/delta/generic/Configuration.h
  35. 3
    2
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  36. 1
    0
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  37. 3
    2
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  38. 1
    0
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  39. 3
    2
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  40. 1
    0
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  41. 3
    2
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  42. 1
    0
      Marlin/example_configurations/makibox/Configuration.h
  43. 3
    2
      Marlin/example_configurations/makibox/Configuration_adv.h
  44. 1
    0
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  45. 3
    2
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h

+ 1
- 0
Marlin/Configuration.h Ver fichero

@@ -596,6 +596,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
596 596
 #define INVERT_E3_DIR false
597 597
 
598 598
 // @section homing
599
+
599 600
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
600 601
                                     // Be sure you have this distance over your Z_MAX_POS in case.
601 602
 

+ 3
- 2
Marlin/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 5
- 5
Marlin/Marlin_main.cpp Ver fichero

@@ -2728,18 +2728,18 @@ inline void gcode_G0_G1() {
2728 2728
  * G4: Dwell S<seconds> or P<milliseconds>
2729 2729
  */
2730 2730
 inline void gcode_G4() {
2731
-  millis_t codenum = 0;
2731
+  millis_t dwell_ms = 0;
2732 2732
 
2733
-  if (code_seen('P')) codenum = code_value_millis(); // milliseconds to wait
2734
-  if (code_seen('S')) codenum = code_value_millis_from_seconds(); // seconds to wait
2733
+  if (code_seen('P')) dwell_ms = code_value_millis(); // milliseconds to wait
2734
+  if (code_seen('S')) dwell_ms = code_value_millis_from_seconds(); // seconds to wait
2735 2735
 
2736 2736
   stepper.synchronize();
2737 2737
   refresh_cmd_timeout();
2738
-  codenum += previous_cmd_ms;  // keep track of when we started waiting
2738
+  dwell_ms += previous_cmd_ms;  // keep track of when we started waiting
2739 2739
 
2740 2740
   if (!lcd_hasstatus()) LCD_MESSAGEPGM(MSG_DWELL);
2741 2741
 
2742
-  while (PENDING(millis(), codenum)) idle();
2742
+  while (PENDING(millis(), dwell_ms)) idle();
2743 2743
 }
2744 2744
 
2745 2745
 #if ENABLED(BEZIER_CURVE_SUPPORT)

+ 2
- 0
Marlin/SanityCheck.h Ver fichero

@@ -680,6 +680,8 @@
680 680
   #error "ABS_PREHEAT_HPB_TEMP is now PREHEAT_2_TEMP_BED. Please update your configuration."
681 681
 #elif defined(ABS_PREHEAT_FAN_SPEED)
682 682
   #error "ABS_PREHEAT_FAN_SPEED is now PREHEAT_2_FAN_SPEED. Please update your configuration."
683
+#elif defined(ENDSTOPS_ONLY_FOR_HOMING)
684
+  #error "ENDSTOPS_ONLY_FOR_HOMING is deprecated. Use (disable) ENDSTOPS_ALWAYS_ON_DEFAULT instead."
683 685
 #endif
684 686
 
685 687
 /**

+ 9
- 0
Marlin/configuration_store.cpp Ver fichero

@@ -127,6 +127,7 @@
127 127
  */
128 128
 #include "Marlin.h"
129 129
 #include "language.h"
130
+#include "endstops.h"
130 131
 #include "planner.h"
131 132
 #include "temperature.h"
132 133
 #include "ultralcd.h"
@@ -660,6 +661,14 @@ void Config_ResetDefault() {
660 661
   for (uint8_t q = 0; q < COUNT(filament_size); q++)
661 662
     filament_size[q] = DEFAULT_NOMINAL_FILAMENT_DIA;
662 663
 
664
+  endstops.enable_globally(
665
+    #if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
666
+      (true)
667
+    #else
668
+      (false)
669
+    #endif
670
+  );
671
+
663 672
   Config_Postprocess();
664 673
 
665 674
   SERIAL_ECHO_START;

+ 3
- 17
Marlin/endstops.cpp Ver fichero

@@ -40,10 +40,10 @@ Endstops endstops;
40 40
 
41 41
 bool  Endstops::enabled = true,
42 42
       Endstops::enabled_globally =
43
-        #if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
44
-          false
43
+        #if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
44
+          (true)
45 45
         #else
46
-          true
46
+          (false)
47 47
         #endif
48 48
       ;
49 49
 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
64 64
  * Class and Instance Methods
65 65
  */
66 66
 
67
-Endstops::Endstops() {
68
-  enable_globally(
69
-    #if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
70
-      false
71
-    #else
72
-      true
73
-    #endif
74
-  );
75
-  enable(true);
76
-  #if HAS_BED_PROBE
77
-    enable_z_probe(false);
78
-  #endif
79
-} // Endstops::Endstops
80
-
81 67
 void Endstops::init() {
82 68
 
83 69
   #if HAS_X_MIN

+ 1
- 1
Marlin/endstops.h Ver fichero

@@ -43,7 +43,7 @@ class Endstops {
43 43
     #endif
44 44
         current_endstop_bits, old_endstop_bits;
45 45
         
46
-    Endstops();
46
+    Endstops() {};
47 47
 
48 48
     /**
49 49
      * Initialize the endstop pins

+ 1
- 0
Marlin/example_configurations/Cartesio/Configuration.h Ver fichero

@@ -596,6 +596,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
596 596
 #define INVERT_E3_DIR false
597 597
 
598 598
 // @section homing
599
+
599 600
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
600 601
                                     // Be sure you have this distance over your Z_MAX_POS in case.
601 602
 

+ 3
- 2
Marlin/example_configurations/Cartesio/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/Felix/Configuration.h Ver fichero

@@ -578,6 +578,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
578 578
 #define INVERT_E3_DIR false
579 579
 
580 580
 // @section homing
581
+
581 582
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
582 583
                                     // Be sure you have this distance over your Z_MAX_POS in case.
583 584
 

+ 3
- 2
Marlin/example_configurations/Felix/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/Felix/DUAL/Configuration.h Ver fichero

@@ -576,6 +576,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
576 576
 #define INVERT_E3_DIR false
577 577
 
578 578
 // @section homing
579
+
579 580
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
580 581
                                     // Be sure you have this distance over your Z_MAX_POS in case.
581 582
 

+ 1
- 0
Marlin/example_configurations/Hephestos/Configuration.h Ver fichero

@@ -588,6 +588,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
588 588
 #define INVERT_E3_DIR false
589 589
 
590 590
 // @section homing
591
+
591 592
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
592 593
                                     // Be sure you have this distance over your Z_MAX_POS in case.
593 594
 

+ 3
- 2
Marlin/example_configurations/Hephestos/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-//#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/Hephestos_2/Configuration.h Ver fichero

@@ -590,6 +590,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
590 590
 #define INVERT_E3_DIR false
591 591
 
592 592
 // @section homing
593
+
593 594
 #define MIN_Z_HEIGHT_FOR_HOMING 5   // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
594 595
                                     // Be sure you have this distance over your Z_MAX_POS in case.
595 596
 

+ 3
- 2
Marlin/example_configurations/Hephestos_2/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/K8200/Configuration.h Ver fichero

@@ -613,6 +613,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
613 613
 #define INVERT_E3_DIR true
614 614
 
615 615
 // @section homing
616
+
616 617
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
617 618
                                     // Be sure you have this distance over your Z_MAX_POS in case.
618 619
 

+ 3
- 2
Marlin/example_configurations/K8200/Configuration_adv.h Ver fichero

@@ -229,7 +229,9 @@
229 229
 
230 230
 // @section homing
231 231
 
232
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
232
+// If you want endstops to stay on (by default) even when not homing
233
+// enable this option. Override at any time with M120, M121.
234
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
233 235
 
234 236
 // @section extras
235 237
 
@@ -445,7 +447,6 @@
445 447
   // This option allows you to abort SD printing when any endstop is triggered.
446 448
   // This feature must be enabled with "M540 S1" or from the LCD menu.
447 449
   // To have any effect, endstops must be enabled during SD printing.
448
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
449 450
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
450 451
 
451 452
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/K8400/Configuration.h Ver fichero

@@ -573,6 +573,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
573 573
 #define INVERT_E3_DIR false
574 574
 
575 575
 // @section homing
576
+
576 577
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
577 578
                                     // Be sure you have this distance over your Z_MAX_POS in case.
578 579
 

+ 3
- 2
Marlin/example_configurations/K8400/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/K8400/Dual-head/Configuration.h Ver fichero

@@ -573,6 +573,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
573 573
 #define INVERT_E3_DIR false
574 574
 
575 575
 // @section homing
576
+
576 577
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
577 578
                                     // Be sure you have this distance over your Z_MAX_POS in case.
578 579
 

+ 1
- 0
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Ver fichero

@@ -596,6 +596,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
596 596
 #define INVERT_E3_DIR false
597 597
 
598 598
 // @section homing
599
+
599 600
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
600 601
                                     // Be sure you have this distance over your Z_MAX_POS in case.
601 602
 

+ 1
- 0
Marlin/example_configurations/RigidBot/Configuration.h Ver fichero

@@ -593,6 +593,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
593 593
 #define INVERT_E3_DIR false
594 594
 
595 595
 // @section homing
596
+
596 597
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
597 598
                                     // Be sure you have this distance over your Z_MAX_POS in case.
598 599
 

+ 3
- 2
Marlin/example_configurations/RigidBot/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/SCARA/Configuration.h Ver fichero

@@ -604,6 +604,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
604 604
 #define INVERT_E3_DIR false
605 605
 
606 606
 // @section homing
607
+
607 608
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
608 609
                                     // Be sure you have this distance over your Z_MAX_POS in case.
609 610
 

+ 3
- 2
Marlin/example_configurations/SCARA/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/TAZ4/Configuration.h Ver fichero

@@ -617,6 +617,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
617 617
 #define INVERT_E3_DIR true
618 618
 
619 619
 // @section homing
620
+
620 621
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
621 622
                                     // Be sure you have this distance over your Z_MAX_POS in case.
622 623
 

+ 3
- 2
Marlin/example_configurations/TAZ4/Configuration_adv.h Ver fichero

@@ -231,7 +231,9 @@
231 231
 
232 232
 // @section homing
233 233
 
234
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
234
+// If you want endstops to stay on (by default) even when not homing
235
+// enable this option. Override at any time with M120, M121.
236
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
235 237
 
236 238
 // @section extras
237 239
 
@@ -447,7 +449,6 @@
447 449
   // This option allows you to abort SD printing when any endstop is triggered.
448 450
   // This feature must be enabled with "M540 S1" or from the LCD menu.
449 451
   // To have any effect, endstops must be enabled during SD printing.
450
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
451 452
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
452 453
 
453 454
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/WITBOX/Configuration.h Ver fichero

@@ -588,6 +588,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
588 588
 #define INVERT_E3_DIR false
589 589
 
590 590
 // @section homing
591
+
591 592
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
592 593
                                     // Be sure you have this distance over your Z_MAX_POS in case.
593 594
 

+ 3
- 2
Marlin/example_configurations/WITBOX/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-//#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/adafruit/ST7565/Configuration.h Ver fichero

@@ -596,6 +596,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
596 596
 #define INVERT_E3_DIR false
597 597
 
598 598
 // @section homing
599
+
599 600
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
600 601
                                     // Be sure you have this distance over your Z_MAX_POS in case.
601 602
 

+ 1
- 0
Marlin/example_configurations/delta/biv2.5/Configuration.h Ver fichero

@@ -685,6 +685,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
685 685
 #define INVERT_E3_DIR false
686 686
 
687 687
 // @section homing
688
+
688 689
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
689 690
                                     // Be sure you have this distance over your Z_MAX_POS in case.
690 691
 

+ 3
- 2
Marlin/example_configurations/delta/biv2.5/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -441,7 +443,6 @@
441 443
   // This option allows you to abort SD printing when any endstop is triggered.
442 444
   // This feature must be enabled with "M540 S1" or from the LCD menu.
443 445
   // To have any effect, endstops must be enabled during SD printing.
444
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
445 446
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
446 447
 
447 448
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/delta/generic/Configuration.h Ver fichero

@@ -679,6 +679,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
679 679
 #define INVERT_E3_DIR false
680 680
 
681 681
 // @section homing
682
+
682 683
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
683 684
                                     // Be sure you have this distance over your Z_MAX_POS in case.
684 685
 

+ 3
- 2
Marlin/example_configurations/delta/generic/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -441,7 +443,6 @@
441 443
   // This option allows you to abort SD printing when any endstop is triggered.
442 444
   // This feature must be enabled with "M540 S1" or from the LCD menu.
443 445
   // To have any effect, endstops must be enabled during SD printing.
444
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
445 446
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
446 447
 
447 448
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h Ver fichero

@@ -682,6 +682,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
682 682
 #define INVERT_E3_DIR false
683 683
 
684 684
 // @section homing
685
+
685 686
 //#define MIN_Z_HEIGHT_FOR_HOMING 15// (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
686 687
                                     // Be sure you have this distance over your Z_MAX_POS in case.
687 688
 

+ 3
- 2
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -440,7 +442,6 @@
440 442
   // This option allows you to abort SD printing when any endstop is triggered.
441 443
   // This feature must be enabled with "M540 S1" or from the LCD menu.
442 444
   // To have any effect, endstops must be enabled during SD printing.
443
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
444 445
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
445 446
 
446 447
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration.h Ver fichero

@@ -676,6 +676,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
676 676
 #define INVERT_E3_DIR false
677 677
 
678 678
 // @section homing
679
+
679 680
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
680 681
                                     // Be sure you have this distance over your Z_MAX_POS in case.
681 682
 

+ 3
- 2
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h Ver fichero

@@ -228,7 +228,9 @@
228 228
 
229 229
 // @section homing
230 230
 
231
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
231
+// If you want endstops to stay on (by default) even when not homing
232
+// enable this option. Override at any time with M120, M121.
233
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
232 234
 
233 235
 // @section extras
234 236
 
@@ -445,7 +447,6 @@
445 447
   // This option allows you to abort SD printing when any endstop is triggered.
446 448
   // This feature must be enabled with "M540 S1" or from the LCD menu.
447 449
   // To have any effect, endstops must be enabled during SD printing.
448
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
449 450
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
450 451
 
451 452
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/delta/kossel_xl/Configuration.h Ver fichero

@@ -677,6 +677,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
677 677
 #define INVERT_E3_DIR false
678 678
 
679 679
 // @section homing
680
+
680 681
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
681 682
                                     // Be sure you have this distance over your Z_MAX_POS in case.
682 683
 

+ 3
- 2
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -441,7 +443,6 @@
441 443
   // This option allows you to abort SD printing when any endstop is triggered.
442 444
   // This feature must be enabled with "M540 S1" or from the LCD menu.
443 445
   // To have any effect, endstops must be enabled during SD printing.
444
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
445 446
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
446 447
 
447 448
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/makibox/Configuration.h Ver fichero

@@ -599,6 +599,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
599 599
 #define INVERT_E3_DIR false
600 600
 
601 601
 // @section homing
602
+
602 603
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
603 604
                                     // Be sure you have this distance over your Z_MAX_POS in case.
604 605
 

+ 3
- 2
Marlin/example_configurations/makibox/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

+ 1
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h Ver fichero

@@ -586,6 +586,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
586 586
 #define INVERT_E3_DIR false
587 587
 
588 588
 // @section homing
589
+
589 590
 //#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
590 591
                                     // Be sure you have this distance over your Z_MAX_POS in case.
591 592
 

+ 3
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h Ver fichero

@@ -223,7 +223,9 @@
223 223
 
224 224
 // @section homing
225 225
 
226
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
226
+// If you want endstops to stay on (by default) even when not homing
227
+// enable this option. Override at any time with M120, M121.
228
+//#define ENDSTOPS_ALWAYS_ON_DEFAULT
227 229
 
228 230
 // @section extras
229 231
 
@@ -439,7 +441,6 @@
439 441
   // This option allows you to abort SD printing when any endstop is triggered.
440 442
   // This feature must be enabled with "M540 S1" or from the LCD menu.
441 443
   // To have any effect, endstops must be enabled during SD printing.
442
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
443 444
   //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
444 445
 
445 446
 #endif // SDSUPPORT

Loading…
Cancelar
Guardar