From b27bc672717e206c49969b20cce8485255db30fe Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 5 Dec 2017 01:10:31 -0600 Subject: [PATCH] Set initial endstops state --- Marlin/src/module/endstops.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Marlin/src/module/endstops.h b/Marlin/src/module/endstops.h index 24b498d490..729057ef0f 100644 --- a/Marlin/src/module/endstops.h +++ b/Marlin/src/module/endstops.h @@ -70,7 +70,15 @@ class Endstops { static esbits_t current_endstop_bits, old_endstop_bits; - Endstops() {}; + Endstops() { + enable_globally( + #if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT) + true + #else + false + #endif + ); + }; /** * Initialize the endstop pins