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

@ -165,25 +165,25 @@
#define BTN_EN2 33
#define BTN_ENC 35
#define SDCARDDETECT 49
#define SDCARDDETECT_PIN 49
#elif ENABLED(LCD_I2C_PANELOLU2)
#define BTN_EN1 47 // reverse if the encoder turns the wrong way.
#define BTN_EN2 43
#define BTN_ENC 32
#define LCD_SDSS 53
#define SDCARDDETECT -1
#define SDCARDDETECT_PIN -1
#define KILL_PIN 41
#elif ENABLED(LCD_I2C_VIKI)
#define BTN_EN1 22 // reverse if the encoder turns the wrong way.
#define BTN_EN2 7
#define BTN_ENC -1
#define LCD_SDSS 53
#define SDCARDDETECT 49
#define SDCARDDETECT_PIN 49
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
#define BTN_EN1 35 // reverse if the encoder turns the wrong way.
#define BTN_EN2 37
#define BTN_ENC 31
#define SDCARDDETECT 49
#define SDCARDDETECT_PIN 49
#define LCD_SDSS 53
#define KILL_PIN 41
#define BEEPER_PIN 23
@ -210,7 +210,7 @@
#define BTN_EN2 63
#define BTN_ENC 59 //the click switch
//not connected to a pin
#define SDCARDDETECT 49
#define SDCARDDETECT_PIN 49
#else
@ -235,9 +235,9 @@
#endif
#if ENABLED(G3D_PANEL)
#define SDCARDDETECT 49
#define SDCARDDETECT_PIN 49
#else
#define SDCARDDETECT -1 // Ramps does not use this port
#define SDCARDDETECT_PIN -1 // Ramps does not use this port
#endif
#endif