summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/lcd-h100-remote.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-11-14 02:46:59 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-11-14 02:46:59 +0000
commit7bc41203afbf8a69dec331d304a226cb70484855 (patch)
tree7ff3ec861b9288f2118c940fe8d5a3c976e6f62a /firmware/drivers/lcd-h100-remote.c
parentcc50c149e9452e7c8ea199fd72f7458ead96bad7 (diff)
downloadrockbox-7bc41203afbf8a69dec331d304a226cb70484855.tar.gz
rockbox-7bc41203afbf8a69dec331d304a226cb70484855.zip
Removed anachronisms introduced with low battery shutdown patch.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11524 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-h100-remote.c')
-rw-r--r--firmware/drivers/lcd-h100-remote.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c
index 0592f60e00..e366906724 100644
--- a/firmware/drivers/lcd-h100-remote.c
+++ b/firmware/drivers/lcd-h100-remote.c
@@ -484,6 +484,11 @@ static void remote_lcd_init(void)
lcd_remote_set_invert_display(cached_invert);
}
+bool remote_detect(void)
+{
+ return (GPIO_READ & 0x40000000)?false:true;
+}
+
int remote_type(void)
{
return _remote_type;
@@ -499,7 +504,7 @@ static void remote_tick(void)
int val;
int level;
- current_status = ((GPIO_READ & 0x40000000) == 0);
+ current_status = remote_detect();
/* Only report when the status has changed */
if (current_status != last_status)
{