mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-26 16:13:53 -06:00
Tweak IS_SD_INSERTED
This commit is contained in:
parent
c6a5c74208
commit
d26d9d5b81
1 changed files with 2 additions and 2 deletions
|
@ -247,9 +247,9 @@ private:
|
||||||
#define IS_SD_INSERTED() Sd2Card::isInserted()
|
#define IS_SD_INSERTED() Sd2Card::isInserted()
|
||||||
#elif PIN_EXISTS(SD_DETECT)
|
#elif PIN_EXISTS(SD_DETECT)
|
||||||
#if ENABLED(SD_DETECT_INVERTED)
|
#if ENABLED(SD_DETECT_INVERTED)
|
||||||
#define IS_SD_INSERTED() (READ(SD_DETECT_PIN) == HIGH)
|
#define IS_SD_INSERTED() READ(SD_DETECT_PIN)
|
||||||
#else
|
#else
|
||||||
#define IS_SD_INSERTED() (READ(SD_DETECT_PIN) == LOW)
|
#define IS_SD_INSERTED() !READ(SD_DETECT_PIN)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
// No card detect line? Assume the card is inserted.
|
// No card detect line? Assume the card is inserted.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue