forked from len0rd/rockbox
MMC hotswap enabled for Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5703 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3c758c13af
commit
70bf516db1
3 changed files with 17 additions and 0 deletions
11
apps/tree.c
11
apps/tree.c
|
@ -1075,6 +1075,17 @@ static bool dirbrowse(void)
|
||||||
status_draw(false);
|
status_draw(false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef HAVE_HOTSWAP
|
||||||
|
case SYS_FS_CHANGED:
|
||||||
|
if (!id3db) /* file browsing */
|
||||||
|
{
|
||||||
|
/* FixMe: skip this if not in root
|
||||||
|
and our path is still valid */
|
||||||
|
reload_root = true; /* the dumb way */
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if(default_event_handler(button) == SYS_USB_CONNECTED)
|
if(default_event_handler(button) == SYS_USB_CONNECTED)
|
||||||
{
|
{
|
||||||
|
|
|
@ -82,6 +82,9 @@
|
||||||
/* define this if more than one device/partition can be used */
|
/* define this if more than one device/partition can be used */
|
||||||
#define HAVE_MULTIVOLUME
|
#define HAVE_MULTIVOLUME
|
||||||
|
|
||||||
|
/* define this if media can be exchanged on the fly */
|
||||||
|
#define HAVE_HOTSWAP
|
||||||
|
|
||||||
#define CONFIG_LCD LCD_SSD1815
|
#define CONFIG_LCD LCD_SSD1815
|
||||||
|
|
||||||
#endif /* SIMULATOR */
|
#endif /* SIMULATOR */
|
||||||
|
|
|
@ -70,6 +70,9 @@
|
||||||
/* define this if more than one device/partition can be used */
|
/* define this if more than one device/partition can be used */
|
||||||
#define HAVE_MULTIVOLUME
|
#define HAVE_MULTIVOLUME
|
||||||
|
|
||||||
|
/* define this if media can be exchanged on the fly */
|
||||||
|
#define HAVE_HOTSWAP
|
||||||
|
|
||||||
#define CONFIG_LCD LCD_SSD1815
|
#define CONFIG_LCD LCD_SSD1815
|
||||||
|
|
||||||
#endif /* SIMULATOR */
|
#endif /* SIMULATOR */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue