changeset 1041:93c98a28406c GasConsumption

Bugfix missing SYS header in dive menu: The SYS header in the diving menu was missing. Rootcause was a missing array entry which was not created while adding the new SYS tab for custom options.
author Ideenmodellierer
date Thu, 16 Oct 2025 19:55:35 +0200
parents 74be24428049
children 7efc8baa3ffa
files Discovery/Src/tMenu.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/tMenu.c	Mon Oct 13 20:54:25 2025 +0200
+++ b/Discovery/Src/tMenu.c	Thu Oct 16 19:55:35 2025 +0200
@@ -578,17 +578,17 @@
      */
 
 
+    tM_add(StMSYS); //now in both modes
     if(actual_menu_content == MENU_SURFACE)
     {
         tM_add(StMDECO);
         tM_add(StMHARD);
+        tM_add(StMCustom);
         tM_add(StMOption);
-        tM_add(StMSYS);
-        tM_add(StMCustom);
+//		tM_add(StMSYS); now in both modes
     }
     else
     {
-        tM_add(StMSYS); //now in both modes (dive mode)
         tM_add(StMXTRA);
     }
     if(actual_menu_content == MENU_SURFACE)
@@ -1379,7 +1379,8 @@
         "",
 		"",
 		"",
-        "SIM"
+		"SIM",
+        ""
     };
 
     _Bool spacing[MAXPAGES+1] =
@@ -1412,6 +1413,7 @@
 
     gfx_write_page_number(&tMscreen ,menu.pageCountNumber[page],menu.pageCountTotal,0);
 
+    /* Find the matching master text if a tab has no direct name e.g. SYS subtabs */
     while((text8max[pageText][0] == 0) && (pageText > 1))
     {
         pageText--;