From 2c30bd92452bf08bb24252a4c3a7302a3bcf3511 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 5 Sep 2007 16:16:49 +0000 Subject: [PATCH] try #2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14622 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/usb-fw-pp502x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index 240548bf61..be37b8b710 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c @@ -92,7 +92,9 @@ void usb_init_device(void) void usb_enable(bool on) { #ifdef HAVE_USBSTACK - (void)on; + if (!on) { + usb_stack_stop(); + } #else /* This device specific code will eventually give way to proper USB handling, which should be the same for all PP502x targets. */ @@ -149,8 +151,6 @@ int usb_detect(void) status = usbstatus2 ? USB_INSERTED : USB_POWERED; #ifndef HAVE_USBSTACK dr_controller_stop(); -#else - usb_stack_stop(); #endif } return status;