From bfa578f0d4d05e9f068ec3d029d9f5463ce2adc3 Mon Sep 17 00:00:00 2001 From: Leo Lima Date: Sat, 2 Nov 2019 13:16:30 +0100 Subject: [PATCH] [1.1.x] Fix autostart w/out SD_DETECT_PIN (#15667) --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 319ec10c6f21..fcd9d6066580 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -15453,7 +15453,7 @@ void setup() { enable_D(); #endif - #if ENABLED(SDSUPPORT) && DISABLED(ULTRA_LCD) + #if ENABLED(SDSUPPORT) && !(ENABLED(ULTRA_LCD) && PIN_EXISTS(SD_DETECT)) card.beginautostart(); #endif }