From 453550a6877afcda342ac2477cf05028fff053f9 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 18 Jan 2011 14:10:06 +0000 Subject: Try to get some control over #ifdef hell in usb.c by refactoring and inline function use. SYS_USB_DISCONNECTED_ACK hasn't been doing anything useful for the USB thread; remove it. USB thread simply ignores that value. Observe only valid usb_state transitions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29084 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootloader/common.c') diff --git a/bootloader/common.c b/bootloader/common.c index 1099b9f453..8c587edf51 100644 --- a/bootloader/common.c +++ b/bootloader/common.c @@ -303,7 +303,7 @@ void display_logf(void) /* Doesn't return! */ if(button == SYS_USB_CONNECTED) usb_acknowledge(SYS_USB_CONNECTED_ACK); else if(button == SYS_USB_DISCONNECTED) - usb_acknowledge(SYS_USB_DISCONNECTED_ACK); + ; else if(button & LOGF_UP) user_index++; else if(button & LOGF_DOWN) -- cgit v1.2.3