Planner: reset deco gas used member
Otherwise every recalculation will continue to incorrectly increase the deco gas used value. Fixes #598 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b0da8c2707
commit
9d97426e8e
@ -246,5 +246,6 @@ void reset_cylinders(struct dive *dive, bool track_gas)
|
||||
if (track_gas && cyl->type.workingpressure.mbar)
|
||||
cyl->start.mbar = cyl->end.mbar = cyl->type.workingpressure.mbar;
|
||||
cyl->gas_used.mliter = 0;
|
||||
cyl->deco_gas_used.mliter = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user