Skip to content

Commit

Permalink
Fix MKS SGen-L SD detect pin (MarlinFirmware#16224)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiskeithb authored and LinoBarreca committed Dec 18, 2019
1 parent 8a0fddd commit f6f1228
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@
#define BTN_EN2 P3_26

#define LCD_SDSS P0_28
#define SD_DETECT_PIN P0_27

#if ENABLED(MKS_12864OLED_SSD1306)

Expand Down Expand Up @@ -284,17 +283,16 @@

#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card

#if SD_CONNECTION_IS(LCD)
#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)
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
#define SD_DETECT_PIN P0_27
#define SCK_PIN P0_07
#define MISO_PIN P0_08
#define MOSI_PIN P0_09
#define SS_PIN ONBOARD_SD_CS_PIN
#if SD_CONNECTION_IS(ONBOARD)
#define SS_PIN ONBOARD_SD_CS_PIN
#else
#define SS_PIN P0_28
#endif
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
#error "No custom SD drive cable defined for this board."
#endif
Expand Down

0 comments on commit f6f1228

Please sign in to comment.