1
0
Fork 0
forked from len0rd/rockbox

minor oops

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5056 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jörg Hohensohn 2004-09-10 11:28:44 +00:00
parent 24c7c04899
commit cde9844748

View file

@ -485,12 +485,10 @@ static int button_read(void)
int btn = BUTTON_NONE;
int data = adc_read(4);
if(adc_read(2) > 0x180) /* active high */
if(adc_read(2) > 0x200) /* active high */
btn |= BUTTON_MENU;
if(adc_read(3) < 0x180) /* active low */
if(adc_read(3) < 0x200) /* active low */
btn |= BUTTON_ON;
if(adc_read(3) < 0x180)
btn |= BUTTON_PLAY | BUTTON_UP;
/* Check the 4 direction keys, hard-coded analog limits for now */
if (data >= 0x2E5)