Fix handling of gas type for CCR dives.
Fix bug introduced in #3576: On CCR dives cylinders listed as open circuit bailout by the dive computer need to be set to `OC_GAS`. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
8fe5564059
commit
40fc037aa4
@ -162,6 +162,7 @@ static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t
|
||||
cyl.type.size.mliter = lrint(tank.volume * 1000);
|
||||
cyl.type.workingpressure.mbar = lrint(tank.workpressure * 1000);
|
||||
|
||||
cyl.cylinder_use = OC_GAS;
|
||||
// libdivecomputer treats these as independent, but a tank cannot be used for diluent and O2 at the same time
|
||||
if (tank.type & DC_TANKINFO_CC_DILUENT)
|
||||
cyl.cylinder_use = DILUENT;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user