Browse Source

Merge pull request #3679 from thinkyhead/rc_fix_3677

Can't use the ENABLED macro as a boolean
Scott Lahteine 8 years ago
parent
commit
a5a6b86898
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      Marlin/endstops.cpp

+ 7
- 1
Marlin/endstops.cpp View File

@@ -37,7 +37,13 @@
37 37
 Endstops endstops;
38 38
 
39 39
 Endstops::Endstops() {
40
-  enable_globally(ENABLED(ENDSTOPS_ONLY_FOR_HOMING));
40
+  enable_globally(
41
+    #if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
42
+      true
43
+    #else
44
+      false
45
+    #endif
46
+  );
41 47
   enable(true);
42 48
   #if ENABLED(HAS_Z_MIN_PROBE)
43 49
     enable_z_probe(false);

Loading…
Cancel
Save