changeset 444:f2c4f5c90540 minor_improvments

Introduced enum for lower left corner view selection: Enums allow changes in view configuration without danger of index inconsistencies
author ideenmodellierer
date Sat, 29 Feb 2020 22:27:29 +0100
parents a5101c688b49
children ee1434824c3f
files Discovery/Src/tMenuEditSystem.c
diffstat 1 files changed, 12 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSystem.c	Sat Feb 29 22:27:04 2020 +0100
+++ b/Discovery/Src/tMenuEditSystem.c	Sat Feb 29 22:27:29 2020 +0100
@@ -876,36 +876,39 @@
     switch(settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary)
     {
     /* Temperature */
-    case 1:
+    case LLC_Temperature:
         text[4] = TXT_Temperature;
         break;
     /* Average Depth */
-    case 2:
+    case LLC_AverageDepth:
         text[4] = TXT_AvgDepth;
         break;
     /* ppO2 */
-    case 3:
+    case LLC_ppO2:
         text[4] = TXT_ppO2;
         break;
     /* Stop Uhr */
-    case 4:
+    case LLC_Stopwatch:
         text[4] = TXT_Stopwatch;
         break;
     /* Ceiling */
-    case 5:
+    case LLC_Ceiling:
         text[4] = TXT_Ceiling;
         break;
     /* Future TTS */
-    case 6:
+    case LLC_FutureTTS:
         text[4] = TXT_FutureTTS;
         break;
     /* CNS */
-    case 7:
+    case LLC_CNS:
         text[4] = TXT_CNS;
         break;
-    case 8:
+    case LLC_GF:
     	text[4] = TXT_ActualGradient;
     	break;
+    case LCC_BottleBar:
+    	text[4] = TXT_AtemGasVorrat;
+    	    	break;
     /* none */
     case 0:
         text[4] = '-';
@@ -1080,7 +1083,7 @@
 
     value += 1;
 
-    if(value > 8)
+    if(value >= LLC_END)
         value = 0;
 
     settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary = value;