comparison Discovery/Src/check_warning.c @ 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 e373e90a48db
children
comparison
equal deleted inserted replaced
912:57fc479745b0 913:5f38cf765193
250 localGas.depth_meter = calc_MOD(i); 250 localGas.depth_meter = calc_MOD(i);
251 } 251 }
252 if ((localGas.note.ub.active) 252 if ((localGas.note.ub.active)
253 && (localGas.note.ub.deco) 253 && (localGas.note.ub.deco)
254 && (localGas.depth_meter) 254 && (localGas.depth_meter)
255 && (localGas.depth_meter >= (diveState->lifeData.depth_meter - 0.01f )) 255 && (localGas.depth_meter >= (diveState->lifeData.depth_meter - 0.9f ))
256 && (localGas.depth_meter <= bestGasDepth)) { 256 && (localGas.depth_meter <= bestGasDepth)) {
257 betterGasIdLocal = i; 257 betterGasIdLocal = i;
258 bestGasDepth = diveSettings.gas[i].depth_meter; 258 bestGasDepth = diveSettings.gas[i].depth_meter;
259 } 259 }
260 } 260 }