From 1a09bf2f9bd36e9b5bfa1de6f6fec65a6b222c8d Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 8 Mar 2009 19:00:21 +0000 Subject: Make the USB disconnect feature dependent on HAVE_USB_POWER. This may not be that useful, but (a) it fixes compile errors on ZVM, and (b) if you don't have USB power, why leave the device plugged in anyway? (a.k.a. fix red) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20246 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/screens.c') diff --git a/apps/screens.c b/apps/screens.c index e1e1c37bf5..e4eeb1f383 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -108,7 +108,8 @@ int handle_usb_events(struct event_queue *q) case SYS_TIMEOUT: break; } -#if defined(HAVE_USBSTACK) && defined(USE_ROCKBOX_USB) +#if defined(HAVE_USBSTACK) && defined(USE_ROCKBOX_USB) \ + && defined(HAVE_USB_POWER) if((button_status() & ~USBPOWER_BTN_IGNORE) == USBPOWER_BUTTON) { usb_storage_try_release_storage(); -- cgit v1.2.3