1
0
Fork 0
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:
Michael Sevakis 2006-09-10 02:00:40 +00:00
parent 24ca76ffec
commit 3d2e10bcbd
10 changed files with 131 additions and 23 deletions

View file

@ -845,6 +845,7 @@ static int button_read(void)
static int prev_data = 0xff;
static int last_valid = 0xff;
bool hold_button_old;
bool remote_hold_button_old;
/* normal buttons */
hold_button_old = hold_button;
@ -916,12 +917,13 @@ static int button_read(void)
}
/* remote buttons */
remote_hold_button_old = remote_hold_button;
remote_hold_button = remote_button_hold_only();
if (remote_hold_button && !remote_button_hold_only())
{
remote_backlight_on();
}
#ifndef BOOTLOADER
if (remote_hold_button != remote_hold_button_old)
remote_backlight_hold_changed(remote_hold_button);
#endif
if (!remote_hold_button)
{