bugfix: for ErosQ/SurfansF20, reset poweroff timer when scroll wheel is moved so that we dont blank the screen while the user is scrolling through a list

Change-Id: Ifdce301e2d75e3f6f54fba5b3eef15b2141cb954
This commit is contained in:
Richard Goedeken 2022-12-02 11:16:08 -08:00 committed by Aidan MacDonald
parent bbe3942039
commit d06cf3ac2d

View file

@ -233,6 +233,7 @@ int button_read_device(void)
* Rockbox treats these buttons differently. */ * Rockbox treats these buttons differently. */
queue_post(&button_queue, BUTTON_SCROLL_FWD, 0); queue_post(&button_queue, BUTTON_SCROLL_FWD, 0);
enc_position = 0; enc_position = 0;
reset_poweroff_timer();
} }
else if (enc_position < -1) else if (enc_position < -1)
{ {
@ -240,6 +241,7 @@ int button_read_device(void)
* Rockbox treats these buttons differently. */ * Rockbox treats these buttons differently. */
queue_post(&button_queue, BUTTON_SCROLL_BACK, 0); queue_post(&button_queue, BUTTON_SCROLL_BACK, 0);
enc_position = 0; enc_position = 0;
reset_poweroff_timer();
} }
return r; return r;