Prevent uneeded unmount!:mount f already mounted of sdcard (#6986)

Prevent double SD mount on Horus
This commit is contained in:
3djc
2019-10-22 15:47:36 +02:00
committed by Bertrand Songis
parent ba16662775
commit 546b37ccff
3 changed files with 2 additions and 7 deletions
+1 -3
View File
@@ -502,11 +502,9 @@ void perMain()
#endif
#if defined(STM32)
bool sdcardPresent = SD_CARD_PRESENT();
if (sdcardPresent && !globalData.sdcardPresent) {
if (SD_CARD_PRESENT() && !sdMounted()) {
sdMount();
}
globalData.sdcardPresent = sdcardPresent;
#endif
#if !defined(EEPROM)