diff options
Diffstat (limited to 'firmware/target/sh/archos/player/button-player.c')
-rw-r--r-- | firmware/target/sh/archos/player/button-player.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/sh/archos/player/button-player.c b/firmware/target/sh/archos/player/button-player.c index fbc940f7de..f979e76575 100644 --- a/firmware/target/sh/archos/player/button-player.c +++ b/firmware/target/sh/archos/player/button-player.c | |||
@@ -54,13 +54,13 @@ int button_read_device(void) | |||
54 | int data; | 54 | int data; |
55 | 55 | ||
56 | /* buttons are active low */ | 56 | /* buttons are active low */ |
57 | if (adc_read(0) < 0x180) | 57 | if (adc_read(ADC_BUTTON_LEFT) < 0x180) |
58 | btn = BUTTON_LEFT; | 58 | btn = BUTTON_LEFT; |
59 | if (adc_read(1) < 0x180) | 59 | if (adc_read(ADC_BUTTON_MENU) < 0x180) |
60 | btn |= BUTTON_MENU; | 60 | btn |= BUTTON_MENU; |
61 | if (adc_read(2) < 0x180) | 61 | if (adc_read(ADC_BUTTON_RIGHT) < 0x180) |
62 | btn |= BUTTON_RIGHT; | 62 | btn |= BUTTON_RIGHT; |
63 | if (adc_read(3) < 0x180) | 63 | if (adc_read(ADC_BUTTON_PLAY) < 0x180) |
64 | btn |= BUTTON_PLAY; | 64 | btn |= BUTTON_PLAY; |
65 | 65 | ||
66 | /* check port A pins for ON and STOP */ | 66 | /* check port A pins for ON and STOP */ |