Mercurial > public > ostc4
comparison Discovery/Src/tComm.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 | ca713e199f22 |
| children | 74be24428049 |
comparison
equal
deleted
inserted
replaced
| 1026:5fedf7ba2392 | 1027:158100a84ebd |
|---|---|
| 326 tComm_StartBlueModConfig(); | 326 tComm_StartBlueModConfig(); |
| 327 } | 327 } |
| 328 #ifndef BOOTLOADER_STANDALONE | 328 #ifndef BOOTLOADER_STANDALONE |
| 329 if(updateSettingsAndMenuOnExit) | 329 if(updateSettingsAndMenuOnExit) |
| 330 { | 330 { |
| 331 check_and_correct_settings(); | 331 check_and_correct_settings(EF_SETTINGS); |
| 332 createDiveSettings(); | 332 createDiveSettings(); |
| 333 tM_rebuild_menu_after_tComm(); | 333 tM_rebuild_menu_after_tComm(); |
| 334 } | 334 } |
| 335 #endif | 335 #endif |
| 336 updateSettingsAndMenuOnExit = 0; | 336 updateSettingsAndMenuOnExit = 0; |
| 1181 break; | 1181 break; |
| 1182 | 1182 |
| 1183 #ifndef BOOTLOADER_STANDALONE | 1183 #ifndef BOOTLOADER_STANDALONE |
| 1184 //Reset all setting | 1184 //Reset all setting |
| 1185 case 0x78: | 1185 case 0x78: |
| 1186 set_settings_to_Standard(); | 1186 set_settings_to_Standard(EF_SETTINGS); |
| 1187 updateSettingsAndMenuOnExit = 1; | 1187 updateSettingsAndMenuOnExit = 1; |
| 1188 aTxBuffer[count++] = prompt4D4C(receiveStartByteUart); | 1188 aTxBuffer[count++] = prompt4D4C(receiveStartByteUart); |
| 1189 break; | 1189 break; |
| 1190 #endif | 1190 #endif |
| 1191 | 1191 |
