diff --git a/Marlin/Conditionals_LulzBot.h b/Marlin/Conditionals_LulzBot.h index 039fa172c..7f41912b9 100644 --- a/Marlin/Conditionals_LulzBot.h +++ b/Marlin/Conditionals_LulzBot.h @@ -245,6 +245,10 @@ // been reported upstream as bug #8669 #define LULZBOT_Z_HOMING_HEIGHT_WORKAROUND +// Marlin 1.1.5 does not respect ENDSTOPS_ALWAYS_ON_DEFAULT at startup, +// as described in T1393 +#define LULZBOT_ENDSTOPS_ALWAYS_ON_DEFAULT_WORKAROUND + /******************** MOTHERBOARD AND PIN CONFIGURATION ***********************/ #if defined(TOOLHEAD_Devel_ServoDual) @@ -1509,6 +1513,8 @@ // stallguard is never cleared. //#define LULZBOT_ENDSTOP_INTERRUPTS_FEATURE + // ENDSTOPS_ALWAYS_ON_DEFAULT causes false positives + // with stallguard. #undef LULZBOT_ENDSTOPS_ALWAYS_ON_DEFAULT // According to Jason at UltiMachine, setting the lower the diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index f0da6286c..aa89b5151 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -13642,6 +13642,16 @@ void setup() { pe_deactivate_magnet(1); #endif #endif + + #if defined(LULZBOT_ENDSTOPS_ALWAYS_ON_DEFAULT_WORKAROUND) + endstops.enable_globally( + #if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT) + true + #else + false + #endif + ); + #endif } /**