Fix red in 75edff7880 due to various bootloaders

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit dd0d9549ab82f9cc92859ecce73f89031308cf16
Author: Solomon Peachy <[email protected]>
Date:   Wed Jan 14 16:53:55 2026 -0500

    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

diff --git a/firmware/usb.c b/firmware/usb.c
index 7f4c61a573..4c0505daca 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -307,9 +307,11 @@ void usb_signal_transfer_completion(
 
 void usb_clear_pending_transfer_completion_events(void)
 {
+#ifdef HAVE_EXTENDED_MESSAGING_AND_NAME
     while (queue_peek_ex(&usb_queue, NULL,
                          1 | QPEEK_REMOVE_EVENTS,
                          QPEEK_FILTER1(USB_TRANSFER_COMPLETION)));
+#endif
 }
 
 void usb_signal_notify(long id, intptr_t data)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.