diff options
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/equipment.c b/equipment.c index 3111ed599..b69155629 100644 --- a/equipment.c +++ b/equipment.c @@ -56,7 +56,8 @@ bool cylinder_nodata(cylinder_t *cyl) !cyl->gasmix.o2.permille && !cyl->gasmix.he.permille && !cyl->start.mbar && - !cyl->end.mbar; + !cyl->end.mbar && + !cyl->gas_used.mliter; } static bool cylinder_nosamples(cylinder_t *cyl) @@ -197,5 +198,6 @@ void reset_cylinders(struct dive *dive) cyl->depth = gas_mod(&cyl->gasmix, pO2); if (cyl->type.workingpressure.mbar) cyl->start.mbar = cyl->end.mbar = cyl->type.workingpressure.mbar; + cyl->gas_used.mliter = 0; } } |