Merge pull request #9067 from MarlinFirmware/SD-detect

[bugfix-1.1.x] SD card detect fix
This commit is contained in:
Bob-the-Kuhn 2018-01-05 20:32:33 -06:00 committed by GitHub
commit 0b5b2a424c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4943,6 +4943,7 @@ void lcd_update() {
if (sd_status != lcd_sd_status && lcd_detected()) { if (sd_status != lcd_sd_status && lcd_detected()) {
if (sd_status) { if (sd_status) {
safe_delay(1000); // some boards need a delay or the LCD won't show the new status
card.initsd(); card.initsd();
if (lcd_sd_status != 2) LCD_MESSAGEPGM(MSG_SD_INSERTED); if (lcd_sd_status != 2) LCD_MESSAGEPGM(MSG_SD_INSERTED);
} }