From 6867ffb1435a292e34c9d1a77a254677bae107a6 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Tue, 2 Apr 2019 21:07:03 +0200 Subject: [PATCH] Implement the initial gas mix Initialize the initial gas mix correctly from the data in the dive header, instead of always using the first gas mix. --- src/suunto_d9_parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/suunto_d9_parser.c b/src/suunto_d9_parser.c index 362f0d7..420d438 100644 --- a/src/suunto_d9_parser.c +++ b/src/suunto_d9_parser.c @@ -223,6 +223,8 @@ suunto_d9_parser_cache (suunto_d9_parser_t *parser) } else { parser->gasmix = data[0x28]; } + } else if (parser->model == DX) { + parser->gasmix = data[0x31] & 0x7F; } } parser->config = config;