Fix "Card removed" on startup
This commit is contained in:
parent
3ebd8b88a4
commit
ef8be4dfca
1 changed files with 1 additions and 0 deletions
|
@ -7863,6 +7863,7 @@ void ultralcd_init()
|
|||
#if defined (SDSUPPORT) && defined(SDCARDDETECT) && (SDCARDDETECT > 0)
|
||||
SET_INPUT(SDCARDDETECT);
|
||||
WRITE(SDCARDDETECT, HIGH);
|
||||
_delay_ms(1); //wait for the pullups to raise the line
|
||||
lcd_oldcardstatus = IS_SD_INSERTED;
|
||||
#endif//(SDCARDDETECT > 0)
|
||||
lcd_encoder_diff = 0;
|
||||
|
|
Loading…
Reference in a new issue