Sansa As3525 OS stacks debug menu change scroll buttons

the other items that scroll use the menu button and reset on STD_OK

OS stacks use STD_OK to scroll and any other button to reset

Change-Id: I1fa1caa322fe761c6f92d2d08cc418e78843863b
This commit is contained in:
William Wilgus 2026-06-17 10:22:11 -04:00
parent d00a53a1f0
commit d737cbb931

View file

@ -218,6 +218,22 @@ static int dbg_threads_action_callback(int action, struct gui_synclist *lists)
}
#if LCD_WIDTH <= 128
int *x_offset = ((int*) lists->data);
#if CONFIG_CPU == AS3525v2
if (action == ACTION_STD_MENU)
{
*x_offset += 1;
action = ACTION_REDRAW;
}
else if (IS_SYSEVENT(action))
{
return ACTION_REDRAW;
}
else if (action == ACTION_STD_OK)
{
*x_offset = 0;
action = ACTION_REDRAW;
}
#else
if (action == ACTION_STD_OK)
{
*x_offset += 1;
@ -231,6 +247,7 @@ static int dbg_threads_action_callback(int action, struct gui_synclist *lists)
{
*x_offset = 0;
}
#endif
#else
(void) lists;
#endif