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.
This commit is contained in:
Jef Driesen 2014-08-03 15:07:55 +02:00
parent 5826257a79
commit ed2b9d34d5
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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.