From 811ae7de8238dcd42987be0e48ff07fcb1b4fb55 Mon Sep 17 00:00:00 2001 From: Janice McLaughlin Date: Wed, 8 Feb 2023 23:26:02 +0100 Subject: [PATCH] Add the deco and rbt samples Add the deco and rbt samples for the Oceanic Pro Plus 4 and Aeris Atmos AI 2. --- src/oceanic_atom2_parser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/oceanic_atom2_parser.c b/src/oceanic_atom2_parser.c index 49b2c0c..9b50fd6 100644 --- a/src/oceanic_atom2_parser.c +++ b/src/oceanic_atom2_parser.c @@ -916,7 +916,8 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_ have_deco = 1; } else if (parser->model == ATOM31 || parser->model == VISION || parser->model == XPAIR || parser->model == I550 || - parser->model == I550C || parser->model == WISDOM4) { + parser->model == I550C || parser->model == WISDOM4 || + parser->model == PROPLUS4 || parser->model == ATMOSAI2) { decostop = (data[offset + 5] & 0xF0) >> 4; decotime = array_uint16_le(data + offset + 4) & 0x03FF; have_deco = 1; @@ -959,7 +960,8 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_ have_rbt = 1; } else if (parser->model == VISION || parser->model == XPAIR || parser->model == I550 || parser->model == I550C || - parser->model == WISDOM4) { + parser->model == WISDOM4 || parser->model == PROPLUS4 || + parser->model == ATMOSAI2) { rbt = array_uint16_le(data + offset + 6) & 0x03FF; have_rbt = 1; }