From fea074986ad528e7600502a9f20bd856b19f2791 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 11 Oct 2023 22:13:38 +0200 Subject: [PATCH] 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 --- core/divelist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/divelist.c b/core/divelist.c index 0278a20ae..a7e52a0a7 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -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)