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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index bb9a00c57b..f448d30b3c 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -2357,6 +2357,18 @@ static bool dbg_scrollwheel(void)
2357} 2357}
2358#endif 2358#endif
2359 2359
2360#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF)
2361extern bool usb_core_serial_enabled;
2362
2363static bool logf_usb_serial(void)
2364{
2365 usb_core_serial_enabled = !usb_core_serial_enabled;
2366 gui_syncsplash(HZ, "USB logf %s",
2367 usb_core_serial_enabled?"enabled":"disabled");
2368 return false;
2369}
2370#endif
2371
2360 2372
2361/****** The menu *********/ 2373/****** The menu *********/
2362struct the_menu_item { 2374struct the_menu_item {
@@ -2436,6 +2448,9 @@ static const struct the_menu_item menuitems[] = {
2436 {"logf", logfdisplay }, 2448 {"logf", logfdisplay },
2437 {"logfdump", logfdump }, 2449 {"logfdump", logfdump },
2438#endif 2450#endif
2451#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF)
2452 {"logf over usb",logf_usb_serial },
2453#endif
2439#ifdef CPU_BOOST_LOGGING 2454#ifdef CPU_BOOST_LOGGING
2440 {"cpu_boost log",cpu_boost_log}, 2455 {"cpu_boost log",cpu_boost_log},
2441#endif 2456#endif