Fix MKS SGen-L SD detect pin (#16224)
This commit is contained in:
parent
509e1ab053
commit
dc8d8cb39c
@ -208,7 +208,6 @@
|
|||||||
#define BTN_EN2 P3_26
|
#define BTN_EN2 P3_26
|
||||||
|
|
||||||
#define LCD_SDSS P0_28
|
#define LCD_SDSS P0_28
|
||||||
#define SD_DETECT_PIN P0_27
|
|
||||||
|
|
||||||
#if ENABLED(MKS_12864OLED_SSD1306)
|
#if ENABLED(MKS_12864OLED_SSD1306)
|
||||||
|
|
||||||
@ -284,17 +283,16 @@
|
|||||||
|
|
||||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||||
|
|
||||||
#if SD_CONNECTION_IS(LCD)
|
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||||
#define SCK_PIN P0_07
|
|
||||||
#define MISO_PIN P0_08
|
|
||||||
#define MOSI_PIN P0_09
|
|
||||||
#define SS_PIN P0_28
|
|
||||||
#elif SD_CONNECTION_IS(ONBOARD)
|
|
||||||
#define SD_DETECT_PIN P0_27
|
#define SD_DETECT_PIN P0_27
|
||||||
#define SCK_PIN P0_07
|
#define SCK_PIN P0_07
|
||||||
#define MISO_PIN P0_08
|
#define MISO_PIN P0_08
|
||||||
#define MOSI_PIN P0_09
|
#define MOSI_PIN P0_09
|
||||||
|
#if SD_CONNECTION_IS(ONBOARD)
|
||||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||||
|
#else
|
||||||
|
#define SS_PIN P0_28
|
||||||
|
#endif
|
||||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||||
#error "No custom SD drive cable defined for this board."
|
#error "No custom SD drive cable defined for this board."
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user