Prevent SD card insertion from causing a hang when using LiquidTWI2 device detection

This commit is contained in:
whosawhatsis 2014-03-14 18:27:11 -07:00
parent 7325d7102e
commit 0ddee3c7db

View file

@ -1051,7 +1051,7 @@ void lcd_update()
lcd_buttons_update(); lcd_buttons_update();
#if (SDCARDDETECT > 0) #if (SDCARDDETECT > 0)
if((IS_SD_INSERTED != lcd_oldcardstatus)) if((IS_SD_INSERTED != lcd_oldcardstatus && lcd_detected()))
{ {
lcdDrawUpdate = 2; lcdDrawUpdate = 2;
lcd_oldcardstatus = IS_SD_INSERTED; lcd_oldcardstatus = IS_SD_INSERTED;