summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-03-29 23:14:44 +0000
committerThomas Martitz <kugel@rockbox.org>2010-03-29 23:14:44 +0000
commit33e7e1d1c3afcb735675f38d8e9fe3329f34eaed (patch)
tree2255b6f12a90208d34ed74977decdc8fbab9524c /firmware
parentd2fec68fb0ed4bfcaf76b1250facb70788ce63f2 (diff)
downloadrockbox-33e7e1d1c3afcb735675f38d8e9fe3329f34eaed.tar.gz
rockbox-33e7e1d1c3afcb735675f38d8e9fe3329f34eaed.tar.bz2
rockbox-33e7e1d1c3afcb735675f38d8e9fe3329f34eaed.zip
Fix bootloader red, it doesn't have backlight handling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25394 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
index 5bd8afebc1..0a6d2c919c 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
@@ -99,12 +99,16 @@ int button_read_device(void)
GPIOD_DIR = 0;
CCU_IO |= 1<<12;
#ifdef HAS_BUTTON_HOLD
+#ifndef BOOTLOADER
/* light handling */
if (hold_button != hold_button_old)
{
hold_button_old = hold_button;
backlight_hold_changed(hold_button);
}
+#else
+ (void)hold_button_old;
+#endif
if (hold_button)
{
power_counter = HZ;