summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-07-08 14:30:03 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-07-08 14:30:03 +0000
commit50304a3ace02907c6c49aa0dce0a59584ea02c4f (patch)
tree487d6fde3f094097b978400f7464163193c12688
parenteb915ce6a1fabf4b4cb0cae770126ba5e3138d2a (diff)
M:Robe 500: fix a bug where the remote LCD was not properly sleeping
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21714 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c
index 742cab3b27..f35524d88e 100644
--- a/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c
+++ b/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c
@@ -123,7 +123,7 @@ static void remote_tick(void)
int bat_level;
static unsigned char pause_length=0;
- if(remote_state_control!=REMOTE_CONTROL_DRAW) {
+ if(remote_state_control!=REMOTE_CONTROL_DRAW && remote_state_control!=REMOTE_CONTROL_IDLE) {
remote_state_control=remote_state_control_next;
remote_state_control_next=REMOTE_CONTROL_MASK;
}
@@ -131,6 +131,9 @@ static void remote_tick(void)
switch (remote_state_control)
{
case REMOTE_CONTROL_IDLE:
+ /* State machine never leaves idle unless remote_state_control is
+ * manually set.
+ */
remote_payload_size=0;
remote_state_control=REMOTE_CONTROL_IDLE;
break;