From f3b522cac6b2fbbed25ce8781058de0eea916282 Mon Sep 17 00:00:00 2001 From: Richard Goedeken Date: Tue, 6 Dec 2022 08:25:08 -0800 Subject: [PATCH] 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 --- .../target/mips/ingenic_x1000/erosqnative/button-erosqnative.c | 2 ++ 1 file changed, 2 insertions(+) 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;