Support both the OC and CC gas mixes.
The Shearwater Predator has two different sets of gas mixes for OC (Open Circuit) and CC (Closed Circuit) mode. Since the dive mode can be switched during the dive (e.g. in a bailout scenario), there is no easy way to select one of both sets. With this change, both sets are returned. It's not a perfect solution, but for CC dives it's already an improvement.
This commit is contained in:
parent
500fb1e16b
commit
99fe2c693f
@ -157,7 +157,7 @@ shearwater_predator_parser_get_field (dc_parser_t *abstract, dc_field_type_t typ
|
||||
*((double *) value) = array_uint16_be (data + size - SZ_BLOCK + 4);
|
||||
break;
|
||||
case DC_FIELD_GASMIX_COUNT:
|
||||
*((unsigned int *) value) = 5;
|
||||
*((unsigned int *) value) = 10;
|
||||
break;
|
||||
case DC_FIELD_GASMIX:
|
||||
gasmix->oxygen = data[20 + flags] / 100.0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user