From 0a0f2c6a30cf23be30448c033d1a16f2ebb65526 Mon Sep 17 00:00:00 2001 From: Ivo Pischner Date: Tue, 27 Oct 2020 13:12:45 +0100 Subject: [PATCH] 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 aaf894c..94ef677 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -15464,7 +15464,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 }