summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-05 10:52:51 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-05 10:52:51 +0000
commit0b033a74d71741fc9a2aa262829a1247719f5d03 (patch)
treee0496b876b47f7a30a56914b19dc4dac76f02875 /firmware/drivers
parent31cf17d12b321caa27680d29ddfb764c7f3129d5 (diff)
more precise settings for GMini adc levels
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5794 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/button.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 626f03da34..eb5ff6e4aa 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -464,20 +464,20 @@ static int button_read(void)
#elif CONFIG_KEYPAD == GMINI100_PAD
- if (adc_read(7) < 0x80)
+ if (adc_read(7) < 0xE3)
btn |= BUTTON_LEFT;
- else if (adc_read(7) < 0x168)
+ else if (adc_read(7) < 0x1c5)
btn |= BUTTON_DOWN;
- else if (adc_read(7) < 0x260)
+ else if (adc_read(7) < 0x2a2)
btn |= BUTTON_RIGHT;
- else if (adc_read(7) < 0x360)
+ else if (adc_read(7) < 0x38a)
btn |= BUTTON_UP;
- if (adc_read(6) < 0x240)
+ if (adc_read(6) < 0x233)
btn |= BUTTON_OFF;
- else if (adc_read(6) < 0x280)
+ else if (adc_read(6) < 0x288)
btn |= BUTTON_PLAY;
- else if (adc_read(6) < 0x300)
+ else if (adc_read(6) < 0x355)
btn |= BUTTON_MENU;
data = P7;