From b824ced0675354d3d1fb2c0702779ddeff24d38a Mon Sep 17 00:00:00 2001 From: Philippe Symons Date: Wed, 29 Apr 2026 00:21:18 +0200 Subject: [PATCH] Update outdated comments --- source/dbg/debug_menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dbg/debug_menu.cpp b/source/dbg/debug_menu.cpp index 4f85138..dbf8cce 100644 --- a/source/dbg/debug_menu.cpp +++ b/source/dbg/debug_menu.cpp @@ -12,7 +12,7 @@ static on_execute_callback delayed_execute_callback = nullptr; static void *delayed_execute_context = nullptr; static unsigned delayed_execute_user_param = 0; -// the menu can be 3 layers deep. +// the menu can be MAX_MENU_LAYERS layers deep. static DebugMenuSection current_menu_section[MAX_MENU_LAYERS]; static unsigned current_menu_section_stack_size; @@ -86,7 +86,7 @@ static __attribute__((noinline)) void show_debug_menu_internal(DebugMenuSection void show_debug_menu() { DebugMenuSection curr_section; - // setting it to 1 because we decrement it as soon as we enter the loop. + current_menu_section_stack_size = 0; push_debug_menu_section(DebugMenuSection::MAIN); while(current_menu_section_stack_size > 0)