From e96611cccd9be5b4f5f95125e87f13af81db4ce4 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 10 Feb 2017 19:42:02 +0100 Subject: [PATCH] Fix the number of gas mixes The Tusa Zen supports a maximum of only 2 gas mixes. --- src/oceanic_atom2_parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/oceanic_atom2_parser.c b/src/oceanic_atom2_parser.c index ea041a2..0b22615 100644 --- a/src/oceanic_atom2_parser.c +++ b/src/oceanic_atom2_parser.c @@ -437,6 +437,9 @@ oceanic_atom2_parser_cache (oceanic_atom2_parser_t *parser) } else if (parser->model == I450T) { o2_offset = 0x30; ngasmixes = 3; + } else if (parser->model == ZEN) { + o2_offset = header + 4; + ngasmixes = 2; } else { o2_offset = header + 4; ngasmixes = 3;