Rename SDCARDDETECT to SDCARDDETECT_PIN

- Rename the pin so it can be tested with `PIN_EXISTS`
- Fix some incorrect tests for `SDCARDDETECT`
This commit is contained in:
Scott Lahteine
2015-07-31 15:09:36 -07:00
committed by Richard Wackerbarth
parent aa1d38613a
commit 8d3b74cc6e
28 changed files with 54 additions and 54 deletions

View File

@ -25,8 +25,8 @@
#undef BEEPER_PIN
#define BEEPER_PIN -1
#undef SDCARDDETECT
#define SDCARDDETECT 22
#undef SDCARDDETECT_PIN
#define SDCARDDETECT_PIN 22
// Extra button definitions, substitute for EN1 / EN2
#define BTN_UP 37 // BTN_EN1
@ -43,16 +43,16 @@
#undef BTN_ENC
#define BTN_ENC 31
#undef SDCARDDETECT
#define SDCARDDETECT 22
#undef SDCARDDETECT_PIN
#define SDCARDDETECT_PIN 22
#elif defined(REPRAP_DISCOUNT_SMART_CONTROLLER)
#undef BEEPER_PIN
#define BEEPER_PIN -1
#undef SDCARDDETECT
#define SDCARDDETECT 22
#undef SDCARDDETECT_PIN
#define SDCARDDETECT_PIN 22
#undef KILL_PIN
#define KILL_PIN 32