forked from len0rd/rockbox
Added remote backlight on hold option to players with remote hold switch. Disabled IRQs while reading pcf50606 ADC. This seems to have stopped buttons becoming unresponsive when using remote. Maybe fixes other button glitches as well?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10911 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
24ca76ffec
commit
3d2e10bcbd
10 changed files with 131 additions and 23 deletions
|
@ -123,6 +123,7 @@ static int channelnum[] =
|
|||
|
||||
unsigned short adc_scan(int channel)
|
||||
{
|
||||
int level = set_irq_level(HIGHEST_IRQ_LEVEL);
|
||||
unsigned char data;
|
||||
|
||||
pcf50606_write(0x2f, 0x80 | (channelnum[channel] << 1) | 1);
|
||||
|
@ -130,6 +131,7 @@ unsigned short adc_scan(int channel)
|
|||
|
||||
adcdata[channel] = data;
|
||||
|
||||
set_irq_level(level);
|
||||
return data;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue