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.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 3db6026901..3788631c81 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -102,6 +102,10 @@
102#include "as3514.h" 102#include "as3514.h"
103#endif 103#endif
104 104
105#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF)
106#include "usb_core.h"
107#endif
108
105/*---------------------------------------------------*/ 109/*---------------------------------------------------*/
106/* SPECIAL DEBUG STUFF */ 110/* SPECIAL DEBUG STUFF */
107/*---------------------------------------------------*/ 111/*---------------------------------------------------*/
@@ -2364,13 +2368,12 @@ static bool dbg_scrollwheel(void)
2364#endif 2368#endif
2365 2369
2366#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF) 2370#if defined(HAVE_USBSTACK) && defined(ROCKBOX_HAS_LOGF)
2367extern bool usb_core_serial_enabled;
2368
2369static bool logf_usb_serial(void) 2371static bool logf_usb_serial(void)
2370{ 2372{
2371 usb_core_serial_enabled = !usb_core_serial_enabled; 2373 bool serial_enabled = !usb_core_driver_enabled(USB_DRIVER_SERIAL);
2374 usb_core_enable_driver(USB_DRIVER_SERIAL,serial_enabled);
2372 gui_syncsplash(HZ, "USB logf %s", 2375 gui_syncsplash(HZ, "USB logf %s",
2373 usb_core_serial_enabled?"enabled":"disabled"); 2376 serial_enabled?"enabled":"disabled");
2374 return false; 2377 return false;
2375} 2378}
2376#endif 2379#endif