Skip to content

Commit

Permalink
📌 Creality RAMPS optional SD_DETECT_PIN (MarlinFirmware#23740)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
  • Loading branch information
ellensp and thinkyhead authored Feb 22, 2022
1 parent 28ceb1e commit a9682f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@
#endif

#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN 49 // Always define onboard SD detect
#if SD_CONNECTION_IS(ONBOARD)
//#define HAS_ONBOARD_SD_DETECT // If the SD_DETECT_PIN is wired up
#endif
#if ENABLED(HAS_ONBOARD_SD_DETECT) || !SD_CONNECTION_IS(ONBOARD)
#define SD_DETECT_PIN 49
#endif
#endif

#ifndef PS_ON_PIN
Expand Down

0 comments on commit a9682f2

Please sign in to comment.