diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-01-28 23:02:05 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-01-28 23:02:05 +0000 |
commit | 70bf516db1b0577a10311f9364d855d4af955ca7 (patch) | |
tree | 11bd05ea2bb2179e1c06df63d91a8632d67c88f0 | |
parent | 3c758c13af485c612a73f932bd905054026c4e72 (diff) | |
download | rockbox-70bf516db1b0577a10311f9364d855d4af955ca7.tar.gz rockbox-70bf516db1b0577a10311f9364d855d4af955ca7.zip |
MMC hotswap enabled for Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5703 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/tree.c | 11 | ||||
-rw-r--r-- | firmware/export/config-ondiofm.h | 3 | ||||
-rw-r--r-- | firmware/export/config-ondiosp.h | 3 |
3 files changed, 17 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index b482682e67..07a0928db1 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -1075,6 +1075,17 @@ static bool dirbrowse(void) | |||
1075 | status_draw(false); | 1075 | status_draw(false); |
1076 | break; | 1076 | break; |
1077 | 1077 | ||
1078 | #ifdef HAVE_HOTSWAP | ||
1079 | case SYS_FS_CHANGED: | ||
1080 | if (!id3db) /* file browsing */ | ||
1081 | { | ||
1082 | /* FixMe: skip this if not in root | ||
1083 | and our path is still valid */ | ||
1084 | reload_root = true; /* the dumb way */ | ||
1085 | } | ||
1086 | break; | ||
1087 | #endif | ||
1088 | |||
1078 | default: | 1089 | default: |
1079 | if(default_event_handler(button) == SYS_USB_CONNECTED) | 1090 | if(default_event_handler(button) == SYS_USB_CONNECTED) |
1080 | { | 1091 | { |
diff --git a/firmware/export/config-ondiofm.h b/firmware/export/config-ondiofm.h index 7e72921a36..b6f105221a 100644 --- a/firmware/export/config-ondiofm.h +++ b/firmware/export/config-ondiofm.h | |||
@@ -82,6 +82,9 @@ | |||
82 | /* define this if more than one device/partition can be used */ | 82 | /* define this if more than one device/partition can be used */ |
83 | #define HAVE_MULTIVOLUME | 83 | #define HAVE_MULTIVOLUME |
84 | 84 | ||
85 | /* define this if media can be exchanged on the fly */ | ||
86 | #define HAVE_HOTSWAP | ||
87 | |||
85 | #define CONFIG_LCD LCD_SSD1815 | 88 | #define CONFIG_LCD LCD_SSD1815 |
86 | 89 | ||
87 | #endif /* SIMULATOR */ | 90 | #endif /* SIMULATOR */ |
diff --git a/firmware/export/config-ondiosp.h b/firmware/export/config-ondiosp.h index 1118c54a1e..59184a4dee 100644 --- a/firmware/export/config-ondiosp.h +++ b/firmware/export/config-ondiosp.h | |||
@@ -70,6 +70,9 @@ | |||
70 | /* define this if more than one device/partition can be used */ | 70 | /* define this if more than one device/partition can be used */ |
71 | #define HAVE_MULTIVOLUME | 71 | #define HAVE_MULTIVOLUME |
72 | 72 | ||
73 | /* define this if media can be exchanged on the fly */ | ||
74 | #define HAVE_HOTSWAP | ||
75 | |||
73 | #define CONFIG_LCD LCD_SSD1815 | 76 | #define CONFIG_LCD LCD_SSD1815 |
74 | 77 | ||
75 | #endif /* SIMULATOR */ | 78 | #endif /* SIMULATOR */ |