Browse Source

Revert default state of endstops in M502

Scott Lahteine 9 years ago
parent
commit
69d6016941
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Marlin/configuration_store.cpp

+ 9
- 0
Marlin/configuration_store.cpp View File

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

Loading…
Cancel
Save