mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
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
This commit is contained in:
parent
7f0bc4bd95
commit
b76cb3bf62
1 changed files with 3 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue