From 99fe2c693fb34730c8bdf25acbc7765d64384cfb Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 6 Dec 2012 20:01:46 +0100 Subject: [PATCH] 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. --- src/shearwater_predator_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shearwater_predator_parser.c b/src/shearwater_predator_parser.c index 4c52ce4..62d37aa 100644 --- a/src/shearwater_predator_parser.c +++ b/src/shearwater_predator_parser.c @@ -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;