1
0
Fork 0
forked from len0rd/rockbox

Fix bootloader red, it doesn't have backlight handling.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25394 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-03-29 23:14:44 +00:00
parent d2fec68fb0
commit 33e7e1d1c3

View file

@ -99,12 +99,16 @@ int button_read_device(void)
GPIOD_DIR = 0; GPIOD_DIR = 0;
CCU_IO |= 1<<12; CCU_IO |= 1<<12;
#ifdef HAS_BUTTON_HOLD #ifdef HAS_BUTTON_HOLD
#ifndef BOOTLOADER
/* light handling */ /* light handling */
if (hold_button != hold_button_old) if (hold_button != hold_button_old)
{ {
hold_button_old = hold_button; hold_button_old = hold_button;
backlight_hold_changed(hold_button); backlight_hold_changed(hold_button);
} }
#else
(void)hold_button_old;
#endif
if (hold_button) if (hold_button)
{ {
power_counter = HZ; power_counter = HZ;