1
0
Fork 0
forked from len0rd/rockbox

Fixed bug, the remote play/pause button (BUTTON_RC_ON) worked with hold on.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6614 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomas Salfischberger 2005-06-08 15:49:21 +00:00
parent 8ed869de4d
commit 1e5ff8ad0a

View file

@ -443,7 +443,11 @@ static int button_read(void)
data = GPIO1_READ;
if ((data & 0x20) == 0)
btn |= BUTTON_ON;
}
if (!remote_button_hold())
{
data = GPIO1_READ;
if ((data & 0x40) == 0)
btn |= BUTTON_RC_ON;
}