mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
Fix red in 75edff7880 due to various bootloaders
Bootloaders don't have support for queue_peek or other advanced queue functionality, so USB-enabled bootloaders can't play these games. Change-Id: Ib807b57b84433e7a2ad019648a6c588ab424c6cd
This commit is contained in:
parent
75edff7880
commit
dd0d9549ab
1 changed files with 2 additions and 0 deletions
|
|
@ -307,9 +307,11 @@ void usb_signal_transfer_completion(
|
||||||
|
|
||||||
void usb_clear_pending_transfer_completion_events(void)
|
void usb_clear_pending_transfer_completion_events(void)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_EXTENDED_MESSAGING_AND_NAME
|
||||||
while (queue_peek_ex(&usb_queue, NULL,
|
while (queue_peek_ex(&usb_queue, NULL,
|
||||||
1 | QPEEK_REMOVE_EVENTS,
|
1 | QPEEK_REMOVE_EVENTS,
|
||||||
QPEEK_FILTER1(USB_TRANSFER_COMPLETION)));
|
QPEEK_FILTER1(USB_TRANSFER_COMPLETION)));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void usb_signal_notify(long id, intptr_t data)
|
void usb_signal_notify(long id, intptr_t data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue