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:
parent
5826257a79
commit
ed2b9d34d5
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user