>From c49d0226081170478c0f29d99f58fe91e5454e3c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 28 Oct 2014 20:55:21 -0700 Subject: [PATCH] Fix temperature parsing for Sherwood Wisdom 3 Adds the new model and treats it like a Wisdom 2 (and many other, similar versions of the Oceanic Atom2 style dive computers). Signed-off-by: Dirk Hohndel --- src/oceanic_atom2_parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oceanic_atom2_parser.c b/src/oceanic_atom2_parser.c index f38afef6f235..2e30612b9484 100644 --- a/src/oceanic_atom2_parser.c +++ b/src/oceanic_atom2_parser.c @@ -64,6 +64,7 @@ #define T3B 0x4455 #define ATOM31 0x4456 #define A300AI 0x4457 +#define WISDOM3 0x4458 #define A300 0x445A #define TX1 0x4542 #define AMPHOS 0x4545 @@ -618,7 +619,7 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_ else if (parser->model == ATOM2 || parser->model == PROPLUS21 || parser->model == EPICA || parser->model == EPICB || parser->model == ATMOSAI2 || parser->model == AMPHOS || - parser->model == WISDOM2) + parser->model == WISDOM2 || parser->model == WISDOM3) sign = (data[offset + 0] & 0x80) >> 7; else sign = (~data[offset + 0] & 0x80) >> 7; -- 1.8.0.rc0.18.gf84667d