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
This commit is contained in:
Richard Goedeken 2022-12-06 08:25:08 -08:00 committed by Aidan MacDonald
parent fceb4f6292
commit f3b522cac6

View file

@ -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;