Ignore oxygen cylinders in get_dive_gas

It looks kinda strange that all CCR dives have a dive gas ..100%, so
rather than showing it as the dive gas used, just ignore cylinders
with usage flagged as oxygen.

Signed-off-by: Anton Lundin <glance@ac2.se>
This commit is contained in:
Anton Lundin 2023-10-11 22:13:38 +02:00 committed by Michael Keller
parent b6111714b3
commit fea074986a

View file

@ -41,6 +41,8 @@ void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2max_p)
if (!is_cylinder_used(dive, i))
continue;
if (cyl->cylinder_use == OXYGEN)
continue;
if (o2 > maxo2)
maxo2 = o2;
if (he > maxhe)