summaryrefslogtreecommitdiff
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
parent24c7c0489971d0ede3c23ea85b097990963d8ea1 (diff)
downloadrockbox-cde9844748b657300a5c6cc46a2a559e7e283504.tar.gz
rockbox-cde9844748b657300a5c6cc46a2a559e7e283504.zip
minor oops
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5056 a1c6a512-1295-4272-9138-f99709370657
-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 51fc3b5a1a..5b222e8a5b 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -485,12 +485,10 @@ static int button_read(void)
485 int btn = BUTTON_NONE; 485 int btn = BUTTON_NONE;
486 int data = adc_read(4); 486 int data = adc_read(4);
487 487
488 if(adc_read(2) > 0x180) /* active high */ 488 if(adc_read(2) > 0x200) /* active high */
489 btn |= BUTTON_MENU; 489 btn |= BUTTON_MENU;
490 if(adc_read(3) < 0x180) /* active low */ 490 if(adc_read(3) < 0x200) /* active low */
491 btn |= BUTTON_ON; 491 btn |= BUTTON_ON;
492 if(adc_read(3) < 0x180)
493 btn |= BUTTON_PLAY | BUTTON_UP;
494 492
495 /* Check the 4 direction keys, hard-coded analog limits for now */ 493 /* Check the 4 direction keys, hard-coded analog limits for now */
496 if (data >= 0x2E5) 494 if (data >= 0x2E5)