comparison Discovery/Src/tMenu.c @ 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 f8e2895c91e5
children
comparison
equal deleted inserted replaced
1040:74be24428049 1041:93c98a28406c
576 /* 2015 Feb 02, hw 576 /* 2015 Feb 02, hw
577 * max 8 Menu Pages 577 * max 8 Menu Pages
578 */ 578 */
579 579
580 580
581 tM_add(StMSYS); //now in both modes
581 if(actual_menu_content == MENU_SURFACE) 582 if(actual_menu_content == MENU_SURFACE)
582 { 583 {
583 tM_add(StMDECO); 584 tM_add(StMDECO);
584 tM_add(StMHARD); 585 tM_add(StMHARD);
586 tM_add(StMCustom);
585 tM_add(StMOption); 587 tM_add(StMOption);
586 tM_add(StMSYS); 588 // tM_add(StMSYS); now in both modes
587 tM_add(StMCustom);
588 } 589 }
589 else 590 else
590 { 591 {
591 tM_add(StMSYS); //now in both modes (dive mode)
592 tM_add(StMXTRA); 592 tM_add(StMXTRA);
593 } 593 }
594 if(actual_menu_content == MENU_SURFACE) 594 if(actual_menu_content == MENU_SURFACE)
595 { 595 {
596 tM_add(StMPLAN); 596 tM_add(StMPLAN);
1377 "", 1377 "",
1378 "SYS", 1378 "SYS",
1379 "", 1379 "",
1380 "", 1380 "",
1381 "", 1381 "",
1382 "SIM" 1382 "SIM",
1383 ""
1383 }; 1384 };
1384 1385
1385 _Bool spacing[MAXPAGES+1] = 1386 _Bool spacing[MAXPAGES+1] =
1386 { 0, 1387 { 0,
1387 1, // behind OC 1388 1, // behind OC
1410 positionText = 10; 1411 positionText = 10;
1411 pageText = page; 1412 pageText = page;
1412 1413
1413 gfx_write_page_number(&tMscreen ,menu.pageCountNumber[page],menu.pageCountTotal,0); 1414 gfx_write_page_number(&tMscreen ,menu.pageCountNumber[page],menu.pageCountTotal,0);
1414 1415
1416 /* Find the matching master text if a tab has no direct name e.g. SYS subtabs */
1415 while((text8max[pageText][0] == 0) && (pageText > 1)) 1417 while((text8max[pageText][0] == 0) && (pageText > 1))
1416 { 1418 {
1417 pageText--; 1419 pageText--;
1418 } 1420 }
1419 1421