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.
This commit is contained in:
Jef Driesen 2016-06-01 19:25:24 +02:00 committed by Dirk Hohndel
parent f67bdcd080
commit bdc1c1349e

View File

@ -724,7 +724,7 @@ suunto_d9_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_t ca
offset += 2; offset += 2;
break; break;
case 0x06: // Gas Change case 0x06: // Gas Change
if (parser->model == DX) if (parser->model == DX || parser->model == VYPERNOVO)
length = 5; length = 5;
else else
length = 4; length = 4;
@ -735,7 +735,7 @@ suunto_d9_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_t ca
unknown = data[offset + 0]; unknown = data[offset + 0];
he = data[offset + 1]; he = data[offset + 1];
o2 = data[offset + 2]; o2 = data[offset + 2];
if (parser->model == DX) { if (parser->model == DX || parser->model == VYPERNOVO) {
seconds = data[offset + 4]; seconds = data[offset + 4];
} else { } else {
seconds = data[offset + 3]; seconds = data[offset + 3];