summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
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/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
parentd2fec68fb0ed4bfcaf76b1250facb70788ce63f2 (diff)
downloadrockbox-33e7e1d1c3afcb735675f38d8e9fe3329f34eaed.tar.gz
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/target/arm/as3525/sansa-fuzev2/button-fuzev2.c')
-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)
99 GPIOD_DIR = 0; 99 GPIOD_DIR = 0;
100 CCU_IO |= 1<<12; 100 CCU_IO |= 1<<12;
101#ifdef HAS_BUTTON_HOLD 101#ifdef HAS_BUTTON_HOLD
102#ifndef BOOTLOADER
102 /* light handling */ 103 /* light handling */
103 if (hold_button != hold_button_old) 104 if (hold_button != hold_button_old)
104 { 105 {
105 hold_button_old = hold_button; 106 hold_button_old = hold_button;
106 backlight_hold_changed(hold_button); 107 backlight_hold_changed(hold_button);
107 } 108 }
109#else
110 (void)hold_button_old;
111#endif
108 if (hold_button) 112 if (hold_button)
109 { 113 {
110 power_counter = HZ; 114 power_counter = HZ;