diff Discovery/Src/tMenuDeco.c @ 707:e81afd727993

Menu cleanup rebreather specific settings: In the previous version the selection for Fix setpoint or sensor was in the deco menu and the Fallback option in the hardware menu. As they have a dependency and are only relevant for rebreather operation, they have been moved into the extra menu which is containing rebreather related data and which is only visible in rebreather mode.
author Ideenmodellierer
date Thu, 03 Nov 2022 20:44:21 +0100
parents 1b995079c045
children
line wrap: on
line diff
--- a/Discovery/Src/tMenuDeco.c	Thu Nov 03 20:37:06 2022 +0100
+++ b/Discovery/Src/tMenuDeco.c	Thu Nov 03 20:44:21 2022 +0100
@@ -38,7 +38,7 @@
     uint8_t textPointer;
     uint8_t	futureTTS;
     double ppO2max_deco, ppO2max_std;
-    char divemode, CcrModusTxtId;
+    char divemode;
     textPointer = 0;
     *tab = 370;
     *subtext = 0;
@@ -84,39 +84,7 @@
     strcpy(&text[textPointer],"\n\r");
     textPointer += 2;
 
-    if(isLoopMode(data->dive_mode))
-    {
-        if((line == 0) || (line == 2))
-        {
-        	switch(data->CCR_Mode)
-        	{
-        		case CCRMODE_Sensors: CcrModusTxtId = TXT_Sensor;
-        			break;
-        		case CCRMODE_FixedSetpoint: CcrModusTxtId = TXT_FixedSP;
-        			break;
-        		case CCRMODE_Simulation: CcrModusTxtId = TXT_SimPpo2;
-        			break;
-        		default:	CcrModusTxtId = 'X';
-        			break;
-        	}
-
-
-            textPointer += snprintf(&text[textPointer], 60,\
-                "%c"
-                "\t"
-                "%c"
-                , TXT_CCRmode
-                , CcrModusTxtId
-            );
-        }
-        strcpy(&text[textPointer],"\n\r");
-        textPointer += 2;
-    }
-    else
-        if(line != 0)
-            line++;
-
-    if((line == 0) || (line == 3))
+    if((line == 0) || (line == 2))
     {
         textPointer += snprintf(&text[textPointer], 60,\
             "ppO2"
@@ -139,7 +107,7 @@
     strcpy(&text[textPointer],"\n\r");
     textPointer += 2;
 
-    if((line == 0) || (line == 4))
+    if((line == 0) || (line == 3))
     {
         textPointer += snprintf(&text[textPointer], 60,\
             "%c"
@@ -164,7 +132,7 @@
     strcpy(&text[textPointer],"\n\r");
     textPointer += 2;
 
-    if((line == 0) || (line == 5))
+    if((line == 0) || (line == 4))
     {
         textPointer += snprintf(&text[textPointer], 60,\
             "%c"
@@ -181,7 +149,7 @@
     strcpy(&text[textPointer],"\n\r");
     textPointer += 2;
 
-    if((line == 0) || (line == 6))
+    if((line == 0) || (line == 5))
     {
         textPointer += snprintf(&text[textPointer], 60,\
             "%c"