Mercurial > public > ostc4
diff Discovery/Src/buehlmann.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 (8 months ago) |
parents | 974648b5ccfe |
children | 7891160acde3 |
line wrap: on
line diff
--- a/Discovery/Src/buehlmann.c Sun Jan 19 21:03:42 2025 +0100 +++ b/Discovery/Src/buehlmann.c Sun Jan 26 19:31:38 2025 +0100 @@ -259,7 +259,10 @@ for(i = gGas_id + 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++) { if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero == 0) - || (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0)) +#ifdef ENABLE_DECOCALC_OPTION + || (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0) +#endif + ) { break; } @@ -462,7 +465,10 @@ for(i = gGas_id + 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++) { if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero == 0) - || (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0)) +#ifdef ENABLE_DECOCALC_OPTION + || (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0) +#endif + ) { break; } @@ -480,7 +486,10 @@ for(i = gGas_id + 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++) { if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero == 0) - || (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0)) +#ifdef ENABLE_DECOCALC_OPTION + || (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0) +#endif + ) { break; }