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