summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Goedeken <richard@fascinationsoftware.com>2022-12-06 08:25:08 -0800
committerAidan MacDonald <amachronic@protonmail.com>2022-12-07 08:16:13 -0500
commitf3b522cac6b2fbbed25ce8781058de0eea916282 (patch)
treecf6bca280052e7c11de39dedae66535fb392dd2b
parentfceb4f6292d18e05686f05fcdfc890e65750ab41 (diff)
downloadrockbox-f3b522cac6.tar.gz
rockbox-f3b522cac6.zip
bugfix: for Eros Q / Surfans F20, when the scroll wheel is moved, in addition to resetting the power-off timer, we also need to reset the backlight timer and turn it on in case it's currently off.
Change-Id: I73b463e74727a2d00b0d4ce599f0cc611fb98685
-rw-r--r--firmware/target/mips/ingenic_x1000/erosqnative/button-erosqnative.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/erosqnative/button-erosqnative.c b/firmware/target/mips/ingenic_x1000/erosqnative/button-erosqnative.c
index 3fc4f11108..6c50021ce1 100644
--- a/firmware/target/mips/ingenic_x1000/erosqnative/button-erosqnative.c
+++ b/firmware/target/mips/ingenic_x1000/erosqnative/button-erosqnative.c
@@ -234,6 +234,7 @@ int button_read_device(void)
queue_post(&button_queue, BUTTON_SCROLL_FWD, 0);
enc_position = 0;
reset_poweroff_timer();
+ backlight_on();
}
else if (enc_position < -1)
{
@@ -242,6 +243,7 @@ int button_read_device(void)
queue_post(&button_queue, BUTTON_SCROLL_BACK, 0);
enc_position = 0;
reset_poweroff_timer();
+ backlight_on();
}
return r;