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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 5fa6667..6c6ed08 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -2583,7 +2583,8 @@ static bool dbg_scrollwheel(void)
}
#endif
-#if defined (HAVE_USBSTACK)
+#if defined (HAVE_USBSTACK) \
+ && (defined(ROCKBOX_HAS_LOGF) && defined(USB_SERIAL) || defined(USB_HID))
static bool toggle_usb_core_driver(int driver, char *msg)
{
bool enabled = !usb_core_driver_enabled(driver);