|
@@ -208,7 +208,6 @@
|
208
|
208
|
#define BTN_EN2 P3_26
|
209
|
209
|
|
210
|
210
|
#define LCD_SDSS P0_28
|
211
|
|
- #define SD_DETECT_PIN P0_27
|
212
|
211
|
|
213
|
212
|
#if ENABLED(MKS_12864OLED_SSD1306)
|
214
|
213
|
|
|
@@ -284,17 +283,16 @@
|
284
|
283
|
|
285
|
284
|
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
286
|
285
|
|
287
|
|
-#if SD_CONNECTION_IS(LCD)
|
288
|
|
- #define SCK_PIN P0_07
|
289
|
|
- #define MISO_PIN P0_08
|
290
|
|
- #define MOSI_PIN P0_09
|
291
|
|
- #define SS_PIN P0_28
|
292
|
|
-#elif SD_CONNECTION_IS(ONBOARD)
|
|
286
|
+#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
293
|
287
|
#define SD_DETECT_PIN P0_27
|
294
|
288
|
#define SCK_PIN P0_07
|
295
|
289
|
#define MISO_PIN P0_08
|
296
|
290
|
#define MOSI_PIN P0_09
|
297
|
|
- #define SS_PIN ONBOARD_SD_CS_PIN
|
|
291
|
+ #if SD_CONNECTION_IS(ONBOARD)
|
|
292
|
+ #define SS_PIN ONBOARD_SD_CS_PIN
|
|
293
|
+ #else
|
|
294
|
+ #define SS_PIN P0_28
|
|
295
|
+ #endif
|
298
|
296
|
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
299
|
297
|
#error "No custom SD drive cable defined for this board."
|
300
|
298
|
#endif
|