diff options
author | Richard Goedeken <richard@fascinationsoftware.com> | 2022-12-06 08:25:08 -0800 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-07 08:16:13 -0500 |
commit | f3b522cac6b2fbbed25ce8781058de0eea916282 (patch) | |
tree | cf6bca280052e7c11de39dedae66535fb392dd2b | |
parent | fceb4f6292d18e05686f05fcdfc890e65750ab41 (diff) | |
download | rockbox-f3b522cac6b2fbbed25ce8781058de0eea916282.tar.gz rockbox-f3b522cac6b2fbbed25ce8781058de0eea916282.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.c | 2 |
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) | |||
234 | queue_post(&button_queue, BUTTON_SCROLL_FWD, 0); | 234 | queue_post(&button_queue, BUTTON_SCROLL_FWD, 0); |
235 | enc_position = 0; | 235 | enc_position = 0; |
236 | reset_poweroff_timer(); | 236 | reset_poweroff_timer(); |
237 | backlight_on(); | ||
237 | } | 238 | } |
238 | else if (enc_position < -1) | 239 | else if (enc_position < -1) |
239 | { | 240 | { |
@@ -242,6 +243,7 @@ int button_read_device(void) | |||
242 | queue_post(&button_queue, BUTTON_SCROLL_BACK, 0); | 243 | queue_post(&button_queue, BUTTON_SCROLL_BACK, 0); |
243 | enc_position = 0; | 244 | enc_position = 0; |
244 | reset_poweroff_timer(); | 245 | reset_poweroff_timer(); |
246 | backlight_on(); | ||
245 | } | 247 | } |
246 | 248 | ||
247 | return r; | 249 | return r; |