From a435c407ac88daec763ac66c7db9a6549515573b Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 11 May 2009 19:36:10 +0000 Subject: Don't allow disconnecting from the usb screen, as this doesn't work properly on some OSes (e.g. windows "releases" the device whenever it's not actively reading or writing, which doesn't necessarily mean it's safe to disconnect at that point) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20911 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'apps') diff --git a/apps/screens.c b/apps/screens.c index d359f657a4..fb71866589 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -108,13 +108,6 @@ static int handle_usb_events(struct event_queue *q) case SYS_TIMEOUT: break; } -#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(); - } -#endif if(TIME_AFTER(current_tick,next_update)) { if(usb_inserted()) { -- cgit v1.2.3