From 47f6fc1e0797c223c9f937b3b1ad12908f7801e6 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 5 Dec 2017 01:07:11 -0600 Subject: [PATCH] Set initial endstops state Addressing #8662 --- Marlin/endstops.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Marlin/endstops.h b/Marlin/endstops.h index 18c4fb2d2e..e60132d6e7 100644 --- a/Marlin/endstops.h +++ b/Marlin/endstops.h @@ -28,6 +28,7 @@ #define ENDSTOPS_H #include "enum.h" +#include "MarlinConfig.h" class Endstops { @@ -43,7 +44,15 @@ class Endstops { #endif current_endstop_bits, old_endstop_bits; - Endstops() {}; + Endstops() { + enable_globally( + #if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT) + true + #else + false + #endif + ); + }; /** * Initialize the endstop pins