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
  */
127
  */
128
 #include "Marlin.h"
128
 #include "Marlin.h"
129
 #include "language.h"
129
 #include "language.h"
130
+#include "endstops.h"
130
 #include "planner.h"
131
 #include "planner.h"
131
 #include "temperature.h"
132
 #include "temperature.h"
132
 #include "ultralcd.h"
133
 #include "ultralcd.h"
660
   for (uint8_t q = 0; q < COUNT(filament_size); q++)
661
   for (uint8_t q = 0; q < COUNT(filament_size); q++)
661
     filament_size[q] = DEFAULT_NOMINAL_FILAMENT_DIA;
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
   Config_Postprocess();
672
   Config_Postprocess();
664
 
673
 
665
   SERIAL_ECHO_START;
674
   SERIAL_ECHO_START;

Loading…
Cancel
Save