summaryrefslogtreecommitdiffstats
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-05 11:17:10 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-05 11:17:10 +0000
commit7a186cb598c441ccaa4abb7975fda0192acfc46c (patch)
tree3fdf6e338a734bb2767ce17aaeca85bb5f2d8b2c /firmware/panic.c
parent19b25e9dd6a5049d2cc98c982ac0cf45d3d99113 (diff)
downloadrockbox-7a186cb598c441ccaa4abb7975fda0192acfc46c.tar.gz
rockbox-7a186cb598c441ccaa4abb7975fda0192acfc46c.tar.bz2
rockbox-7a186cb598c441ccaa4abb7975fda0192acfc46c.zip
adjusted to the differend LCDs and for no LCD at all... :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@438 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index 2cb79b1e0c..51fcaaee92 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -36,7 +36,15 @@ void panicf( char *fmt, ...)
vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap );
va_end( ap );
+#ifdef HAVE_LCD_CHARCELLS
lcd_puts(0,0,panic_buf);
+#elif defined(HAVE_LCD_BITMAP)
+ lcd_clear_display();
+ lcd_puts(0,0,panic_buf, 0);
+ lcd_update();
+#else
+ /* no LCD */
+#endif
DEBUGF(panic_buf);
while(1);
}