summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-05-16 22:27:31 +0000
committerJens Arnold <amiconn@rockbox.org>2006-05-16 22:27:31 +0000
commit44a759528d4d2de76aaa756b1e5e6019d84c1675 (patch)
treee161992d6e6ce209e46323304f16b77a592ac0bb /firmware
parent2436dbabe7a0535c90323434e607f8de85173fc3 (diff)
downloadrockbox-44a759528d4d2de76aaa756b1e5e6019d84c1675.tar.gz
rockbox-44a759528d4d2de76aaa756b1e5e6019d84c1675.tar.bz2
rockbox-44a759528d4d2de76aaa756b1e5e6019d84c1675.zip
Iriver: Don't scroll remote LCD lines 'in the dark', i.e. with the remote unplugged.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9951 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-h100-remote.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c
index d023aeb94b..4d3921fa26 100644
--- a/firmware/drivers/lcd-h100-remote.c
+++ b/firmware/drivers/lcd-h100-remote.c
@@ -1364,7 +1364,11 @@ static void scroll_thread(void)
#ifdef SIMULATOR
sleep(delay);
#else
- queue_wait_w_tmo(&remote_scroll_queue, &ev, delay);
+ if (remote_initialized)
+ queue_wait_w_tmo(&remote_scroll_queue, &ev, delay);
+ else
+ queue_wait(&remote_scroll_queue, &ev);
+
switch (ev.id)
{
case REMOTE_INIT_LCD: