One change in r29068 wasn't right. Clarify comments on why it's the way it is. :)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29070 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-01-17 13:12:22 +00:00
parent 1c14d29370
commit 0ecb0fe6b1

View file

@ -483,10 +483,11 @@ void usb_start_monitoring(void)
usb_monitor_enabled = true; usb_monitor_enabled = true;
#ifdef USB_STATUS_BY_EVENT /* An event may have been missed because it was sent before monitoring
/* Filter the status - an event may have been missed because it was * was enabled due to the connector already having been inserted before
* sent before monitoring was enabled due to the connector already * before or during boot. */
* having been inserted before before or during boot. */ #if defined(USB_DETECT_BY_DRV) || defined(USB_DETECT_BY_CORE)
/* Filter the status - USB_INSERTED may happen later */
status = (status == USB_INSERTED) ? USB_POWERED : USB_UNPOWERED; status = (status == USB_INSERTED) ? USB_POWERED : USB_UNPOWERED;
#endif #endif
usb_status_event(status); usb_status_event(status);