From d737cbb931a5d1a4bfffd6ac0e68801e437aa841 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 17 Jun 2026 10:22:11 -0400 Subject: [PATCH] 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 --- apps/debug_menu.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 79e7d27229..2a0f182ed2 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -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