diff --git a/CHANGELOG.md b/CHANGELOG.md index 858021a39..c624387b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +equipment: mark gas mixes reported by the dive computer as 'inactive' as 'not used' desktop: added button to hide the infobox in the dive profile desktop: use persisted device information for the dive computer configuration core: fix bug using salinity and pressure values in mbar <-> depth conversion diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index bc4d06210..94988c516 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -151,7 +151,10 @@ static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t cyl.gasmix.he.permille = he; } - if (dive->dc.divemode == CCR) + if (rc == DC_STATUS_UNSUPPORTED) + // Gasmix is inactive + cyl.cylinder_use = NOT_USED; + else if (dive->dc.divemode == CCR) cyl.cylinder_use = DILUENT; else cyl.cylinder_use = OC_GAS;