Skip to content

Commit a9682f2

Browse files
ellenspthinkyhead
andauthored
📌 Creality RAMPS optional SD_DETECT_PIN (MarlinFirmware#23740)
Co-authored-by: Scott Lahteine <[email protected]>
1 parent 28ceb1e commit a9682f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@
3939
#endif
4040

4141
#ifndef SD_DETECT_PIN
42-
#define SD_DETECT_PIN 49 // Always define onboard SD detect
42+
#if SD_CONNECTION_IS(ONBOARD)
43+
//#define HAS_ONBOARD_SD_DETECT // If the SD_DETECT_PIN is wired up
44+
#endif
45+
#if ENABLED(HAS_ONBOARD_SD_DETECT) || !SD_CONNECTION_IS(ONBOARD)
46+
#define SD_DETECT_PIN 49
47+
#endif
4348
#endif
4449

4550
#ifndef PS_ON_PIN

0 commit comments

Comments
 (0)