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:
committed by
Richard Wackerbarth
parent
aa1d38613a
commit
8d3b74cc6e
@ -81,11 +81,11 @@ extern CardReader card;
|
||||
|
||||
#define IS_SD_PRINTING (card.sdprinting)
|
||||
|
||||
#if (SDCARDDETECT > -1)
|
||||
#if PIN_EXISTS(SDCARDDETECT)
|
||||
#if ENABLED(SDCARDDETECTINVERTED)
|
||||
#define IS_SD_INSERTED (READ(SDCARDDETECT) != 0)
|
||||
#define IS_SD_INSERTED (READ(SDCARDDETECT_PIN) != 0)
|
||||
#else
|
||||
#define IS_SD_INSERTED (READ(SDCARDDETECT) == 0)
|
||||
#define IS_SD_INSERTED (READ(SDCARDDETECT_PIN) == 0)
|
||||
#endif
|
||||
#else
|
||||
//No card detect line? Assume the card is inserted.
|
||||
|
Reference in New Issue
Block a user