Update cardreader.h
This commit is contained in:
@@ -278,8 +278,8 @@ private:
|
||||
|
||||
#if ENABLED(USB_FLASH_DRIVE_SUPPORT)
|
||||
#define IS_SD_INSERTED() Sd2Card::isInserted()
|
||||
#elif PIN_EXISTS(SD_DETECT)
|
||||
#define IS_SD_INSERTED() (READ(SD_DETECT_PIN) == SD_DETECT_STATE)
|
||||
//#elif PIN_EXISTS(SD_DETECT)
|
||||
//#define IS_SD_INSERTED() (READ(SD_DETECT_PIN) == SD_DETECT_STATE)
|
||||
#else
|
||||
// No card detect line? Assume the card is inserted.
|
||||
#define IS_SD_INSERTED() true
|
||||
|
||||
Reference in New Issue
Block a user