summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2005-09-22 21:38:22 +0000
committerJonas Häggqvist <rasher@rasher.dk>2005-09-22 21:38:22 +0000
commit8026f0fe05cafc2adfb75b90e9bd65b9ea1f02cf (patch)
treed518af65acb02c7f454d3b697493699576d0f6e5 /firmware
parente85fe092328de36f114875f4998fdce135338b59 (diff)
downloadrockbox-8026f0fe05cafc2adfb75b90e9bd65b9ea1f02cf.tar.gz
rockbox-8026f0fe05cafc2adfb75b90e9bd65b9ea1f02cf.tar.bz2
rockbox-8026f0fe05cafc2adfb75b90e9bd65b9ea1f02cf.zip
Reverse previous commit - it had uneffected side-effects.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7546 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/button.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 5959bf033d..4d1652984b 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -591,12 +591,7 @@ bool button_hold(void)
bool remote_button_hold(void)
{
- /*
- 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;
+ return (GPIO1_READ & 0x00100000)?true:false;
}
#endif