summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-09-10 11:28:44 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-09-10 11:28:44 +0000
commitcde9844748b657300a5c6cc46a2a559e7e283504 (patch)
treef5a9ccebe64285f5852dac210b85601b03c40d30 /firmware/drivers
parent24c7c0489971d0ede3c23ea85b097990963d8ea1 (diff)
downloadrockbox-cde9844748b657300a5c6cc46a2a559e7e283504.zip
rockbox-cde9844748b657300a5c6cc46a2a559e7e283504.tar.gz
rockbox-cde9844748b657300a5c6cc46a2a559e7e283504.tar.bz2
rockbox-cde9844748b657300a5c6cc46a2a559e7e283504.tar.xz
minor oops
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5056 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/button.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 51fc3b5..5b222e8 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -485,12 +485,10 @@ static int button_read(void)
int btn = BUTTON_NONE;
int data = adc_read(4);
- if(adc_read(2) > 0x180) /* active high */
+ if(adc_read(2) > 0x200) /* active high */
btn |= BUTTON_MENU;
- if(adc_read(3) < 0x180) /* active low */
+ if(adc_read(3) < 0x200) /* active low */
btn |= BUTTON_ON;
- if(adc_read(3) < 0x180)
- btn |= BUTTON_PLAY | BUTTON_UP;
/* Check the 4 direction keys, hard-coded analog limits for now */
if (data >= 0x2E5)