Mercurial > public > ostc4
diff Discovery/Src/settings.c @ 973:79b522fbabe6 Evo_2_23
Deactivate deco gas calculation option:
In the previous version had the option to consider a deco gas i the calculation or not. Reason for this was to have the automatic gas suggestion available while the deco calculation is still based on the current gas.
This might cause a critical situation in case the diver is not sure if the option is active or not => In the new version the TTS / deco is always calculated considering all deco gases.
| author | Ideenmodellierer |
|---|---|
| date | Sun, 26 Jan 2025 19:31:38 +0100 |
| parents | 81049905d829 |
| children | 22d5b477c903 |
line wrap: on
line diff
--- a/Discovery/Src/settings.c Sun Jan 19 21:03:42 2025 +0100 +++ b/Discovery/Src/settings.c Sun Jan 26 19:31:38 2025 +0100 @@ -587,7 +587,9 @@ pSettings->cv_config_BigScreen &= ~0x00000007; /* just to be sure: clear lower three bits */ pSettings->cv_config_BigScreen |= tmp; // no break; - case 0xFFFF0028: /* In previous version deco gases were automatically used for deco calculation */ + case 0xFFFF0028: +#ifdef ENABLE_DECOCALC_OPTION + /* In previous version deco gases were automatically used for deco calculation */ for(tmp=1; tmp<=2*NUM_GASES; tmp++) /* This is now handled by an additional parameter. Set it to true to maintain same behavior as before */ { if(Settings.gas[tmp].note.ub.deco) @@ -599,6 +601,7 @@ Settings.gas[tmp].note.ub.decocalc = 0; } } +#endif // no break; case 0xFFFF0029: Settings.cvAutofocus = 0;
