Merge pull request #3569 from leptun/fix_card_removed
Fix "Card removed" on startup
This commit is contained in:
commit
2e677ea3ee
@ -7916,6 +7916,7 @@ void ultralcd_init()
|
|||||||
#if defined (SDSUPPORT) && defined(SDCARDDETECT) && (SDCARDDETECT > 0)
|
#if defined (SDSUPPORT) && defined(SDCARDDETECT) && (SDCARDDETECT > 0)
|
||||||
SET_INPUT(SDCARDDETECT);
|
SET_INPUT(SDCARDDETECT);
|
||||||
WRITE(SDCARDDETECT, HIGH);
|
WRITE(SDCARDDETECT, HIGH);
|
||||||
|
_delay_ms(1); //wait for the pullups to raise the line
|
||||||
lcd_oldcardstatus = IS_SD_INSERTED;
|
lcd_oldcardstatus = IS_SD_INSERTED;
|
||||||
#endif//(SDCARDDETECT > 0)
|
#endif//(SDCARDDETECT > 0)
|
||||||
lcd_encoder_diff = 0;
|
lcd_encoder_diff = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user