Mercurial > public > ostc4
changeset 913:5f38cf765193 Evo_2_23
Adapted limit for better gas warning:
The Better gas warning was shown more or less when the diver already passed the change depth. In the new version the better gas option is provided when the diver reachs the major digit depth (e.g. 22.9m instead 20.0m). This change does not effect the gas change depth used for deco calculation.
author | Ideenmodellierer |
---|---|
date | Tue, 15 Oct 2024 21:10:45 +0200 |
parents | 57fc479745b0 |
children | 5ce7708a9095 |
files | Discovery/Src/check_warning.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Src/check_warning.c Tue Oct 15 21:07:07 2024 +0200 +++ b/Discovery/Src/check_warning.c Tue Oct 15 21:10:45 2024 +0200 @@ -252,7 +252,7 @@ if ((localGas.note.ub.active) && (localGas.note.ub.deco) && (localGas.depth_meter) - && (localGas.depth_meter >= (diveState->lifeData.depth_meter - 0.01f )) + && (localGas.depth_meter >= (diveState->lifeData.depth_meter - 0.9f )) && (localGas.depth_meter <= bestGasDepth)) { betterGasIdLocal = i; bestGasDepth = diveSettings.gas[i].depth_meter;