Prevent uneeded unmount!:mount f already mounted of sdcard (#6986)
Prevent double SD mount on Horus
This commit is contained in:
+1
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user