From 309549aaee62ce9a6ac83816d01f62cd010271e8 Mon Sep 17 00:00:00 2001 From: Domonoky Date: Mon, 16 Feb 2009 20:02:09 +0000 Subject: [PATCH] fix yellow. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20020 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c | 5 +++-- 1 file 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 6ca342565..8654419f1 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) -- 2.11.4.GIT