Browse Source

Set initial endstops state

Scott Lahteine 7 years ago
parent
commit
b27bc67271
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      Marlin/src/module/endstops.h

+ 9
- 1
Marlin/src/module/endstops.h View File

@@ -70,7 +70,15 @@ class Endstops {
70 70
 
71 71
     static esbits_t current_endstop_bits, old_endstop_bits;
72 72
 
73
-    Endstops() {};
73
+    Endstops() {
74
+      enable_globally(
75
+        #if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
76
+          true
77
+        #else
78
+          false
79
+        #endif
80
+      );
81
+    };
74 82
 
75 83
     /**
76 84
      * Initialize the endstop pins

Loading…
Cancel
Save