From b76cb3bf62a5f433c90ff5765ed50d699c81c3ce Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 24 Jan 2026 07:55:56 -0500 Subject: [PATCH] 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 --- bootloader/xduoox3.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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) {