From 13f85a2b50625148f4fd37e51ff874b075b10a98 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 4 May 2016 16:33:57 -0700 Subject: [PATCH] Can't use the ENABLED macro as a boolean --- Marlin/endstops.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Marlin/endstops.cpp b/Marlin/endstops.cpp index 8d0b0f979..d73f7d0fa 100644 --- a/Marlin/endstops.cpp +++ b/Marlin/endstops.cpp @@ -37,7 +37,13 @@ Endstops endstops; Endstops::Endstops() { - enable_globally(ENABLED(ENDSTOPS_ONLY_FOR_HOMING)); + enable_globally( + #if ENABLED(ENDSTOPS_ONLY_FOR_HOMING) + true + #else + false + #endif + ); enable(true); #if ENABLED(HAS_Z_MIN_PROBE) enable_z_probe(false);