From 148a80e1d110047c3d3fb3c819cde080094341da Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 29 Mar 2012 08:11:52 +0200 Subject: [PATCH] panicf(): fix wrong font and colors being displayed. Change-Id: I57680d5857b577d731b5703e209ccc6e9511ef17 --- firmware/panic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/panic.c b/firmware/panic.c index cdefc5a0b8..0d49847a19 100644 --- a/firmware/panic.c +++ b/firmware/panic.c @@ -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 */