xduoox3: A couple of minor cleanups in the bootloader

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit b76cb3bf62a5f433c90ff5765ed50d699c81c3ce
Author: Solomon Peachy <[email protected]>
Date:   Sat Jan 24 07:55:56 2026 -0500

    xduoox3:  A couple of minor cleanups in the bootloader
    
     * When SHOW_LOGO is not defined, print the version at the
       same time as the logo would have been displayed
     * Don't re-init the display after every message in USB mode
    
    Change-Id: Ida0f5643b1d57004877ec5c42fc14028f53b1c89

diff --git a/bootloader/xduoox3.c b/bootloader/xduoox3.c
index 6c37b5afcc..a8d9fc4a1d 100644
--- a/bootloader/xduoox3.c
+++ b/bootloader/xduoox3.c
@@ -68,7 +68,6 @@ void init_lcd(void)
 #ifdef HAVE_BOOTLOADER_USB_MODE
 static void show_splash(int timeout, const char *msg)
 {
-    init_lcd();
     reset_screen();
     lcd_putsxy( (LCD_WIDTH - (SYSFONT_WIDTH * strlen(msg))) / 2,
                 (LCD_HEIGHT - SYSFONT_HEIGHT) / 2, msg);
@@ -171,6 +170,9 @@ int main(void)
     init_lcd();
 #ifdef SHOW_LOGO
     show_logo();
+#else
+    printf(MODEL_NAME" Rockbox Bootloader");
+    printf("Version %s", rbversion);
 #endif
 
     button_init();
@@ -197,11 +199,6 @@ int main(void)
     }
 #endif /* HAVE_BOOTLOADER_USB_MODE */
 
-#ifndef SHOW_LOGO
-    printf(MODEL_NAME" Rockbox Bootloader");
-    printf("Version %s", rbversion);
-#endif
-
     rc = boot_rockbox();
 
     if(rc <= EFILE_EMPTY) {
-- 
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.