diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-03-08 19:00:21 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-03-08 19:00:21 +0000 |
commit | 1a09bf2f9bd36e9b5bfa1de6f6fec65a6b222c8d (patch) | |
tree | bb4a29c5f8a2d007ac29288b9e789c5d4680df87 | |
parent | b9d8ae49d90ae49658e7423be5dedc520c29ec76 (diff) |
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
-rw-r--r-- | apps/screens.c | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |