Skip to content
Snippets Groups Projects
Commit d26d9d5b authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Tweak IS_SD_INSERTED

parent c6a5c742
Branches
Tags
No related merge requests found
......@@ -247,9 +247,9 @@ private:
#define IS_SD_INSERTED() Sd2Card::isInserted()
#elif PIN_EXISTS(SD_DETECT)
#if ENABLED(SD_DETECT_INVERTED)
#define IS_SD_INSERTED() (READ(SD_DETECT_PIN) == HIGH)
#define IS_SD_INSERTED() READ(SD_DETECT_PIN)
#else
#define IS_SD_INSERTED() (READ(SD_DETECT_PIN) == LOW)
#define IS_SD_INSERTED() !READ(SD_DETECT_PIN)
#endif
#else
// No card detect line? Assume the card is inserted.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment