From 0b033a74d71741fc9a2aa262829a1247719f5d03 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernardy Date: Sat, 5 Feb 2005 10:52:51 +0000 Subject: more precise settings for GMini adc levels git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5794 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/button.c | 14 +++++++------- 1 file 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; -- cgit v1.2.3