diff options
-rw-r--r-- | demos/ARMCM3-STM32F103-FATFS/main.c | 1 | ||||
-rw-r--r-- | demos/ARMCM3-STM32F107-FATFS/main.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/demos/ARMCM3-STM32F103-FATFS/main.c b/demos/ARMCM3-STM32F103-FATFS/main.c index a0a8f3a04..57fc5d2b3 100644 --- a/demos/ARMCM3-STM32F103-FATFS/main.c +++ b/demos/ARMCM3-STM32F103-FATFS/main.c @@ -316,6 +316,7 @@ static void InsertHandler(eventid_t id) { static void RemoveHandler(eventid_t id) {
(void)id;
+ mmcDisconnect(&MMCD1);
fs_ready = FALSE;
}
diff --git a/demos/ARMCM3-STM32F107-FATFS/main.c b/demos/ARMCM3-STM32F107-FATFS/main.c index c009b560a..fd49241cd 100644 --- a/demos/ARMCM3-STM32F107-FATFS/main.c +++ b/demos/ARMCM3-STM32F107-FATFS/main.c @@ -305,6 +305,7 @@ static void InsertHandler(eventid_t id) { static void RemoveHandler(eventid_t id) {
(void)id;
+ mmcDisconnect(&MMCD1);
fs_ready = FALSE;
}
|