From 01346fb293805314f0ae239b0d2844924d722bc9 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 2 Nov 2024 19:12:02 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Longer=20LK=20prefer=20Onboard?= =?UTF-8?q?=20SD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/Configuration.h | 1 - Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 61c3faf5f31c..f7b36037cd5d 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -2597,7 +2597,6 @@ * you must uncomment the following option or it won't work. */ #define SDSUPPORT -#define ONBOARD_SDIO // seems required even with SDCARD_CONNECTION ONBOARD /** * SD CARD: ENABLE CRC diff --git a/Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h b/Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h index b913532fbbdd..8bbc32fde6f5 100644 --- a/Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h +++ b/Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h @@ -160,7 +160,15 @@ #define LCD_BRIGHTNESS_DEFAULT TFT_BACKLIGHT_PWM #endif -#if ENABLED(ONBOARD_SDIO) +// +// SD Support +// +#ifndef SDCARD_CONNECTION + #define SDCARD_CONNECTION ONBOARD +#endif + +#if SD_CONNECTION_IS(ONBOARD) + #define ONBOARD_SDIO #define SD_SS_PIN -1 // else SDSS set to PA4 in M43 (spi_pins.h) #endif