summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-02-16 20:02:09 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-02-16 20:02:09 +0000
commit43a8e08a239d9149f21e439e768b56f363f3709d (patch)
treea0cca3103a94ae5e09ba80222eef840b58b6624a /firmware/target/arm
parent2871963bee64cfcc15402f0ebd3b53429090ab2b (diff)
downloadrockbox-43a8e08a239d9149f21e439e768b56f363f3709d.tar.gz
rockbox-43a8e08a239d9149f21e439e768b56f363f3709d.zip
fix yellow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20020 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c
index 6ca3425651..8654419f10 100644
--- a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c
+++ b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c
@@ -43,8 +43,9 @@ static long last_wheel_post = 0;
static long next_backlight_on = 0;
/* Buttons */
static bool hold_button = false;
+#ifndef BOOTLOADER
static bool hold_button_old = false;
-#define _button_hold() hold_button
+#endif
extern void lcd_button_support(void);
@@ -55,7 +56,7 @@ void button_init_device(void)
bool button_hold(void)
{
- return _button_hold();
+ return hold_button;
}
void clickwheel(unsigned int wheel_value)