mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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
This commit is contained in:
parent
eb915ce6a1
commit
50304a3ace
1 changed files with 4 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ static void remote_tick(void)
|
||||||
int bat_level;
|
int bat_level;
|
||||||
static unsigned char pause_length=0;
|
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=remote_state_control_next;
|
||||||
remote_state_control_next=REMOTE_CONTROL_MASK;
|
remote_state_control_next=REMOTE_CONTROL_MASK;
|
||||||
}
|
}
|
||||||
|
|
@ -131,6 +131,9 @@ static void remote_tick(void)
|
||||||
switch (remote_state_control)
|
switch (remote_state_control)
|
||||||
{
|
{
|
||||||
case REMOTE_CONTROL_IDLE:
|
case REMOTE_CONTROL_IDLE:
|
||||||
|
/* State machine never leaves idle unless remote_state_control is
|
||||||
|
* manually set.
|
||||||
|
*/
|
||||||
remote_payload_size=0;
|
remote_payload_size=0;
|
||||||
remote_state_control=REMOTE_CONTROL_IDLE;
|
remote_state_control=REMOTE_CONTROL_IDLE;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue