From 0f5d9f9125e53ae62175469e78151ca4cb0be79a Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Sun, 30 Sep 2007 12:25:06 +0000 Subject: first part of usbstack patches -> show and use selection of usb stack mode only, if a target supports both modes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14916 a1c6a512-1295-4272-9138-f99709370657 --- apps/menus/settings_menu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/menus') diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index bbc2505a51..9a4079f1d0 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c @@ -516,12 +516,17 @@ int usbdriver_menuitem(void) return false; } +#if USBSTACK_CAPS == (CONTROLLER_DEVICE|CONTROLLER_HOST) MENUITEM_SETTING(usbstack_mode, &global_settings.usb_stack_mode, NULL); +#endif MENUITEM_FUNCTION(usbdriver, 0, ID2P(LANG_USBSTACK_DEVICE_DRIVER), usbdriver_menuitem, 0, NULL, Icon_NOICON); MAKE_MENU(usbstack_menu, ID2P(LANG_USBSTACK), 0, Icon_NOICON, - &usbstack_mode, &usbdriver); +#if USBSTACK_CAPS == (CONTROLLER_DEVICE|CONTROLLER_HOST) + &usbstack_mode, +#endif + &usbdriver); /* USB STACK MENU */ /***********************************/ #endif -- cgit v1.2.3