mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Correctly update mino2
When we've already seen a trimix gas, of we after that see a nitrox gas with less o2, it shouldn't update the mino2 state. Signed-off-by: Anton Lundin <glance@ac2.se>
This commit is contained in:
parent
5444a6b65d
commit
94164bb8fa
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2max_p)
|
|||
continue;
|
||||
if (o2 > maxo2)
|
||||
maxo2 = o2;
|
||||
if (o2 < mino2)
|
||||
if (o2 < mino2 && maxhe <= 0)
|
||||
mino2 = o2;
|
||||
if (he > maxhe)
|
||||
goto newmax;
|
||||
|
|
Loading…
Reference in a new issue