diff Discovery/Src/tMenuSystem.c @ 1027:158100a84ebd GasConsumption

New profile feature: In the past the OSTC provide just one instance for settings. If for example a diver switched from OC to CCR configuration several settings had to be modified. To improve this and to be more flexible in adapting the OSTC to differend dive scenarions the usage of up to 4 profiles has beem introduced. The profiles are copies of the common settings but stored in a separate, previously not used, flash section => no impact to existings settings handling. For access to the profiles the existing setting flash functions are reused. To enable this a parameter war introduced which defines the target of the operation (common settings or profiles).
author Ideenmodellierer
date Sun, 07 Sep 2025 19:03:44 +0200
parents 21142f4fa968
children 2af07aa38531
line wrap: on
line diff
--- a/Discovery/Src/tMenuSystem.c	Sun Sep 07 18:55:45 2025 +0200
+++ b/Discovery/Src/tMenuSystem.c	Sun Sep 07 19:03:44 2025 +0200
@@ -146,6 +146,15 @@
         textPointer += 2;
     }
 
+    if((line == 0) || (line == 2))
+    {
+    	textPointer += snprintf(&text[textPointer], 40,"%c%c:\t%s\n\r",TXT_2BYTE,TXT2BYTE_Profile,data->profileName[data->activeProfile]);
+    }
+    else
+    {
+    	strcpy(&text[textPointer],"\n\r");
+    	textPointer += 2;
+    }
     if((line == 0) || (line == 3))
     {
         text[textPointer++] = TXT_Language;