summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2010-06-05 22:04:14 +0000
committerJens Arnold <amiconn@rockbox.org>2010-06-05 22:04:14 +0000
commit860451927ba06380d2945aa4233f4724df5c205e (patch)
tree4c70354439e89b76b4c77152b0f89b284ed6fabf
parenta0557b23f0c984576fd5a72657593211df148ca4 (diff)
downloadrockbox-860451927ba06380d2945aa4233f4724df5c205e.tar.gz
rockbox-860451927ba06380d2945aa4233f4724df5c205e.tar.bz2
rockbox-860451927ba06380d2945aa4233f4724df5c205e.zip
Put an #ifdef in the technically correct place. No functional change.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26599 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 31bf93e551..e27a3c3dc2 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -408,8 +408,8 @@ static void usb_thread(void)
#else /* !HAVE_USBSTACK */
if(usb_state == USB_INSERTED)
{
- usb_enable(false);
#if (CONFIG_STORAGE & STORAGE_MMC)
+ usb_enable(false);
usb_mmc_countdown = HZ/2; /* re-enable after 0.5 sec */
#endif /* STORAGE_MMC */
}