comparison 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
comparison
equal deleted inserted replaced
1026:5fedf7ba2392 1027:158100a84ebd
144 { 144 {
145 strcpy(&text[textPointer],"\n\r"); 145 strcpy(&text[textPointer],"\n\r");
146 textPointer += 2; 146 textPointer += 2;
147 } 147 }
148 148
149 if((line == 0) || (line == 2))
150 {
151 textPointer += snprintf(&text[textPointer], 40,"%c%c:\t%s\n\r",TXT_2BYTE,TXT2BYTE_Profile,data->profileName[data->activeProfile]);
152 }
153 else
154 {
155 strcpy(&text[textPointer],"\n\r");
156 textPointer += 2;
157 }
149 if((line == 0) || (line == 3)) 158 if((line == 0) || (line == 3))
150 { 159 {
151 text[textPointer++] = TXT_Language; 160 text[textPointer++] = TXT_Language;
152 text[textPointer++] = '\t'; 161 text[textPointer++] = '\t';
153 text[textPointer++] = TXT_LanguageName; 162 text[textPointer++] = TXT_LanguageName;