summaryrefslogtreecommitdiffstats
path: root/firmware/common/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r--firmware/common/disk.c7
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)
{
int mounted;
int i;
+
+#if defined(HAVE_MMC) && defined(HAVE_HOTSWAP)
+ mmc_enable_monitoring(false);
+#endif
fat_init(); /* reset all mounted partitions */
for (i=0; i<NUM_VOLUMES; i++)
@@ -111,6 +115,9 @@ int disk_mount_all(void)
{
mounted += disk_mount(1); /* try 2nd "drive", too */
}
+#ifdef HAVE_HOTSWAP
+ mmc_enable_monitoring(true);
+#endif
#endif
return mounted;