|
@ -140,7 +140,7 @@ CardReader::CardReader() { |
|
|
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT) |
|
|
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT) |
|
|
SET_INPUT_PULLUP(SD_DETECT_PIN); |
|
|
SET_INPUT_PULLUP(SD_DETECT_PIN); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if PIN_EXISTS(SDPOWER) |
|
|
#if PIN_EXISTS(SDPOWER) |
|
|
OUT_WRITE(SDPOWER_PIN, HIGH); // Power the SD reader
|
|
|
OUT_WRITE(SDPOWER_PIN, HIGH); // Power the SD reader
|
|
|
#endif |
|
|
#endif |
|
@ -383,10 +383,9 @@ void CardReader::mount() { |
|
|
|
|
|
|
|
|
if (flag.mounted) |
|
|
if (flag.mounted) |
|
|
cdroot(); |
|
|
cdroot(); |
|
|
else { |
|
|
else if (marlin_state != MF_INITIALIZING) |
|
|
spiInit(SPI_SPEED); // Return to base SPI speed
|
|
|
|
|
|
ui.set_status_P(GET_TEXT(MSG_SD_INIT_FAIL), -1); |
|
|
ui.set_status_P(GET_TEXT(MSG_SD_INIT_FAIL), -1); |
|
|
} |
|
|
|
|
|
ui.refresh(); |
|
|
ui.refresh(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|