forked from len0rd/rockbox
Disable bootloader messages in the ipod bootloader unless the RIGHT button is being held. Messages are still displayed if an error occurs. This needs implementing for the other bootloaders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12631 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e70362d106
commit
4d25bffc8a
3 changed files with 24 additions and 7 deletions
|
@ -22,9 +22,18 @@
|
|||
#include "system.h"
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include "cpu.h"
|
||||
#include "common.h"
|
||||
|
||||
/* TODO: Other bootloaders need to be adjusted to set this variable to true
|
||||
on a button press - currently only the ipod version does. */
|
||||
#ifdef IPOD_ARCH
|
||||
bool verbose = false;
|
||||
#else
|
||||
bool verbose = true;
|
||||
#endif
|
||||
|
||||
int line = 0;
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
int remote_line = 0;
|
||||
|
@ -54,12 +63,14 @@ void printf(const char *format, ...)
|
|||
va_end(ap);
|
||||
|
||||
lcd_puts(0, line++, ptr);
|
||||
lcd_update();
|
||||
if (verbose)
|
||||
lcd_update();
|
||||
if(line >= LCD_HEIGHT/SYSFONT_HEIGHT)
|
||||
line = 0;
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
lcd_remote_puts(0, remote_line++, ptr);
|
||||
lcd_remote_update();
|
||||
if (verbose)
|
||||
lcd_remote_update();
|
||||
if(remote_line >= LCD_REMOTE_HEIGHT/SYSFONT_HEIGHT)
|
||||
remote_line = 0;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue