summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/screens.c3
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();