From bdc1c1349ec7baa433c541e0e1c2961f82815a52 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 1 Jun 2016 19:25:24 +0200 Subject: [PATCH] Fix the length of the Vyper Novo gas change event. Just like the Suunto DX, the Vyper Novo uses 5 bytes for the 0x06 gas change event. --- src/suunto_d9_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/suunto_d9_parser.c b/src/suunto_d9_parser.c index f534051..427fd3d 100644 --- a/src/suunto_d9_parser.c +++ b/src/suunto_d9_parser.c @@ -724,7 +724,7 @@ suunto_d9_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_t ca offset += 2; break; case 0x06: // Gas Change - if (parser->model == DX) + if (parser->model == DX || parser->model == VYPERNOVO) length = 5; else length = 4; @@ -735,7 +735,7 @@ suunto_d9_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_t ca unknown = data[offset + 0]; he = data[offset + 1]; o2 = data[offset + 2]; - if (parser->model == DX) { + if (parser->model == DX || parser->model == VYPERNOVO) { seconds = data[offset + 4]; } else { seconds = data[offset + 3];