Mercurial > public > ostc4
diff Discovery/Src/tMenuEditPlanner.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 | 07af9efd7c13 |
| children | 7891160acde3 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditPlanner.c Sun Jan 19 21:03:42 2025 +0100 +++ b/Discovery/Src/tMenuEditPlanner.c Sun Jan 26 19:31:38 2025 +0100 @@ -451,7 +451,10 @@ for(int i = 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++) { if((stateSimGetPointer()->diveSettings.decogaslist[i].change_during_ascent_depth_meter_otherwise_zero == 0) - || (stateSimGetPointer()->diveSettings.gas[stateSimGetPointer()->diveSettings.decogaslist[i].GasIdInSettings].note.ub.decocalc == 0)) +#ifdef ENABLE_DECOCALC_OPTION + || (stateSimGetPointer()->diveSettings.gas[stateSimGetPointer()->diveSettings.decogaslist[i].GasIdInSettings].note.ub.decocalc == 0) +#endif + ) break; depthChange = stateSimGetPointer()->diveSettings.decogaslist[i].change_during_ascent_depth_meter_otherwise_zero; if(depthPrev <= depthChange) @@ -467,7 +470,10 @@ for(int i = GasIdPrev + 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++) { if((stateSimGetPointer()->diveSettings.decogaslist[i].change_during_ascent_depth_meter_otherwise_zero == 0) - || (stateSimGetPointer()->diveSettings.gas[stateSimGetPointer()->diveSettings.decogaslist[i].GasIdInSettings].note.ub.decocalc == 0)) +#ifdef ENABLE_DECOCALC_OPTION + || (stateSimGetPointer()->diveSettings.gas[stateSimGetPointer()->diveSettings.decogaslist[i].GasIdInSettings].note.ub.decocalc == 0) +#endif + ) break; depthChange = stateSimGetPointer()->diveSettings.decogaslist[i].change_during_ascent_depth_meter_otherwise_zero; if((depthChange < depthPrev) && (depthChange >= depthNext))
