forked from len0rd/rockbox
Make the panic and UIE handlers turn on the backlight (needed for various colour LCDs that are unreadable without it). UIE is only changed on ARM for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22034 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fe1568a11c
commit
ccb52bd72c
2 changed files with 15 additions and 0 deletions
|
@ -30,6 +30,9 @@
|
|||
#include "led.h"
|
||||
#include "power.h"
|
||||
#include "system.h"
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
#include "backlight-target.h"
|
||||
#endif
|
||||
|
||||
static char panic_buf[128];
|
||||
#define LINECHARS (LCD_WIDTH/SYSFONT_WIDTH)
|
||||
|
@ -75,9 +78,14 @@ void panicf( const char *fmt, ...)
|
|||
#else
|
||||
/* no LCD */
|
||||
#endif
|
||||
|
||||
lcd_update();
|
||||
DEBUGF("%s", panic_buf);
|
||||
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
_backlight_on();
|
||||
#endif
|
||||
|
||||
set_cpu_frequency(0);
|
||||
|
||||
#ifdef HAVE_ATA_POWER_OFF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue