forked from len0rd/rockbox
Fix to remote-hold check by Stephan Wezel - it always returned true when the remote wasn't present.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7538 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c0f455993a
commit
aafb343d10
1 changed files with 6 additions and 1 deletions
|
@ -591,7 +591,12 @@ bool button_hold(void)
|
|||
|
||||
bool remote_button_hold(void)
|
||||
{
|
||||
return (GPIO1_READ & 0x00100000)?true:false;
|
||||
/*
|
||||
check also if the remote is plugged in
|
||||
GPIO_READ = 0xDXXXXXXX => not plugged in (X don't care)
|
||||
GPIO_READ = 0x9XXXXXXX => plugged in (X don't care)
|
||||
*/
|
||||
return ( (GPIO1_READ & 0x00100000) && !(GPIO_READ & 0x40000000) )?true:false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue