diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/button.c | 6 |
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) |