From ffd1d1c8b61c90292b12a63b72018add81efa82c Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 11 Jun 2014 09:02:07 +0200 Subject: [PATCH] Disable the gas mixes in gauge mode. --- src/suunto_vyper_parser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/suunto_vyper_parser.c b/src/suunto_vyper_parser.c index 25b134b..b42a24d 100644 --- a/src/suunto_vyper_parser.c +++ b/src/suunto_vyper_parser.c @@ -174,7 +174,10 @@ suunto_vyper_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, unsi *((double *) value) = parser->maxdepth * FEET; break; case DC_FIELD_GASMIX_COUNT: - *((unsigned int *) value) = 1; + if (data[4] & 0x40) + *((unsigned int *) value) = 0; // Gauge mode + else + *((unsigned int *) value) = 1; break; case DC_FIELD_GASMIX: gas->helium = 0.0;