From ed2b9d34d5fa4fdfdba7d5de47c5fe3325710395 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Sun, 3 Aug 2014 15:07:55 +0200 Subject: [PATCH] Fix the dive mode detection for the Mares Nemo Air. For the Nemo Air, a dive mode with the value 2 indicates gauge mode instead of freedive mode. With this change, all models from the puck family now use the same values. --- src/mares_common.c | 2 +- src/mares_nemo_parser.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mares_common.c b/src/mares_common.c index cb7a914..b7042c8 100644 --- a/src/mares_common.c +++ b/src/mares_common.c @@ -213,7 +213,7 @@ mares_common_extract_dives (dc_context_t *context, const mares_common_layout_t * // Get the freedive mode for this model. unsigned int model = data[1]; unsigned int freedive = 2; - if (model == NEMOWIDE || model == PUCK || model == PUCKAIR) + if (model == NEMOWIDE || model == NEMOAIR || model == PUCK || model == PUCKAIR) freedive = 3; // Get the end of the profile ring buffer. diff --git a/src/mares_nemo_parser.c b/src/mares_nemo_parser.c index 5d177b4..3ec39e1 100644 --- a/src/mares_nemo_parser.c +++ b/src/mares_nemo_parser.c @@ -88,7 +88,7 @@ mares_nemo_parser_create (dc_parser_t **out, dc_context_t *context, unsigned int // Get the freedive mode for this model. unsigned int freedive = 2; - if (model == NEMOWIDE || model == PUCK || model == PUCKAIR) + if (model == NEMOWIDE || model == NEMOAIR || model == PUCK || model == PUCKAIR) freedive = 3; // Set the default values.