summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index f93755a..b77a09a 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -102,9 +102,12 @@
#include "as3514.h"
#endif
-#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF)
+#if defined(HAVE_USBSTACK)
#include "usb_core.h"
#endif
+#ifdef USB_STORAGE
+#include "../firmware/usbstack/usb_storage.h"
+#endif
/*---------------------------------------------------*/
/* SPECIAL DEBUG STUFF */
@@ -2378,6 +2381,15 @@ static bool logf_usb_serial(void)
}
#endif
+#if defined(HAVE_USBSTACK) && defined(USB_STORAGE)
+static bool usb_reconnect(void)
+{
+ gui_syncsplash(HZ, "Reconnect mass storage");
+ usb_storage_reconnect();
+ return false;
+}
+#endif
+
/****** The menu *********/
struct the_menu_item {
@@ -2460,6 +2472,9 @@ static const struct the_menu_item menuitems[] = {
#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF) && defined(USB_SERIAL)
{"logf over usb",logf_usb_serial },
#endif
+#if defined(HAVE_USBSTACK) && defined(USB_STORAGE)
+ {"reconnect usb storage",usb_reconnect},
+#endif
#ifdef CPU_BOOST_LOGGING
{"cpu_boost log",cpu_boost_log},
#endif