From 64d048be2bf6c3977a29bd03a47b19c2c5cf58cd Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 26 Dec 2012 17:51:43 +0100 Subject: Make code that depends on HAVE_USB_CHARGING_ENABLE check HAVE_USBSTACK. This fixes building without HAVE_USBSTACK Change-Id: If8fec87a3ed4de583864ed2bab69be1f2ad8ac52 --- apps/menus/settings_menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/menus') diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 95423a20fa..23807e2adc 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c @@ -173,7 +173,7 @@ MENUITEM_SETTING(battery_capacity, &global_settings.battery_capacity, NULL); #if BATTERY_TYPES_COUNT > 1 MENUITEM_SETTING(battery_type, &global_settings.battery_type, NULL); #endif -#ifdef HAVE_USB_CHARGING_ENABLE +#if defined (HAVE_USBSTACK) && defined(HAVE_USB_CHARGING_ENABLE) static int usbcharging_callback(int action,const struct menu_item_ex *this_item) { (void)this_item; @@ -194,7 +194,7 @@ MAKE_MENU(battery_menu, ID2P(LANG_BATTERY_MENU), 0, Icon_NOICON, #if BATTERY_TYPES_COUNT > 1 &battery_type, #endif -#ifdef HAVE_USB_CHARGING_ENABLE +#if defined (HAVE_USBSTACK) && defined(HAVE_USB_CHARGING_ENABLE) &usb_charging, #endif ); -- cgit v1.2.3