From 2fafcc7ae241005c9a59b1f27c682ff2ec005c4c Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 5 Aug 2015 15:02:19 +0200 Subject: [PATCH] Disable all gas mixes in gauge/freedive mode. --- src/suunto_d9_parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/suunto_d9_parser.c b/src/suunto_d9_parser.c index e71a60f..4fd94aa 100644 --- a/src/suunto_d9_parser.c +++ b/src/suunto_d9_parser.c @@ -149,7 +149,9 @@ suunto_d9_parser_cache (suunto_d9_parser_t *parser) // Cache the data for later use. parser->mode = data[gasmode_offset]; parser->gasmix = 0; - if (parser->mode == AIR) { + if (parser->mode == GAUGE || parser->mode == FREEDIVE) { + parser->ngasmixes = 0; + } else if (parser->mode == AIR) { parser->oxygen[0] = 21; parser->helium[0] = 0; parser->ngasmixes = 1;