1
0
Fork 0
forked from len0rd/rockbox

Make code that depends on HAVE_USB_CHARGING_ENABLE check HAVE_USBSTACK.

This fixes building without HAVE_USBSTACK

Change-Id: If8fec87a3ed4de583864ed2bab69be1f2ad8ac52
This commit is contained in:
Frank Gevaerts 2012-12-26 17:51:43 +01:00
parent 5caaf70f34
commit 64d048be2b
4 changed files with 5 additions and 5 deletions

View file

@ -1020,7 +1020,7 @@ void settings_apply(bool read_disk)
touchpad_set_sensitivity(global_settings.touchpad_sensitivity);
#endif
#ifdef HAVE_USB_CHARGING_ENABLE
#if defined (HAVE_USBSTACK) && defined(HAVE_USB_CHARGING_ENABLE)
usb_charging_enable(global_settings.usb_charging);
#endif