diff options
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/disk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c index f4d153c1c2..2f1d789738 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c | |||
@@ -100,6 +100,10 @@ int disk_mount_all(void) | |||
100 | { | 100 | { |
101 | int mounted; | 101 | int mounted; |
102 | int i; | 102 | int i; |
103 | |||
104 | #if defined(HAVE_MMC) && defined(HAVE_HOTSWAP) | ||
105 | mmc_enable_monitoring(false); | ||
106 | #endif | ||
103 | 107 | ||
104 | fat_init(); /* reset all mounted partitions */ | 108 | fat_init(); /* reset all mounted partitions */ |
105 | for (i=0; i<NUM_VOLUMES; i++) | 109 | for (i=0; i<NUM_VOLUMES; i++) |
@@ -111,6 +115,9 @@ int disk_mount_all(void) | |||
111 | { | 115 | { |
112 | mounted += disk_mount(1); /* try 2nd "drive", too */ | 116 | mounted += disk_mount(1); /* try 2nd "drive", too */ |
113 | } | 117 | } |
118 | #ifdef HAVE_HOTSWAP | ||
119 | mmc_enable_monitoring(true); | ||
120 | #endif | ||
114 | #endif | 121 | #endif |
115 | 122 | ||
116 | return mounted; | 123 | return mounted; |