"SD init fail" status error (#19064)

This commit is contained in:
Serhiy-K
2020-08-19 10:58:41 +03:00
committed by GitHub
parent f205bff2cc
commit 60b61de395
2 changed files with 7 additions and 1 deletions

View File

@ -376,8 +376,13 @@ void CardReader::mount() {
flag.mounted = true;
SERIAL_ECHO_MSG(STR_SD_CARD_OK);
}
cdroot();
if (flag.mounted)
cdroot();
else {
spiInit(SPI_SPEED); // Return to base SPI speed
ui.set_status_P(GET_TEXT(MSG_SD_INIT_FAIL), -1);
}
ui.refresh();
}