Don't show surface gas in gas use list
Skip gas use calculation for the gas that was used in the surface segment added by the planner in the end. Reported-by: philippe@philmassart.net Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
826cc97921
commit
aa86d47e47
@ -451,6 +451,8 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
|
||||
char warning[1000] = "";
|
||||
char mingas[1000] = "";
|
||||
cylinder_t *cyl = &dive->cylinder[gasidx];
|
||||
if (cyl->cylinder_use == NOT_USED)
|
||||
continue;
|
||||
if (cylinder_none(cyl))
|
||||
break;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user