Sansa As3525 OS stacks debug menu change scroll buttons

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Wed, 17 Jun 2026 10:26:23 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit d737cbb931a5d1a4bfffd6ac0e68801e437aa841
Author: William Wilgus <[email protected]>
Date:   Wed Jun 17 10:22:11 2026 -0400

    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

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
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs