panicf(): fix wrong font and colors being displayed.
Change-Id: I57680d5857b577d731b5703e209ccc6e9511ef17
This commit is contained in:
parent
10d8717e94
commit
148a80e1d1
1 changed files with 2 additions and 1 deletions
|
@ -82,6 +82,8 @@ void panicf( const char *fmt, ...)
|
|||
vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap );
|
||||
va_end( ap );
|
||||
|
||||
lcd_set_viewport(NULL);
|
||||
|
||||
#ifdef HAVE_LCD_CHARCELLS
|
||||
lcd_double_height(false);
|
||||
lcd_puts(0, 0, "*PANIC*");
|
||||
|
@ -98,7 +100,6 @@ void panicf( const char *fmt, ...)
|
|||
|
||||
lcd_clear_display();
|
||||
lcd_setfont(FONT_SYSFIXED);
|
||||
lcd_set_viewport(NULL);
|
||||
lcd_puts(1, y++, (unsigned char *)"*PANIC*");
|
||||
{
|
||||
/* wrap panic line */
|
||||
|
|
Loading…
Reference in a new issue