From bf268d79b49cd4293c4a730990d7df211bae6303 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 13 Jan 2023 06:40:54 +0100 Subject: [PATCH] Fix parsing dives using dual Buhlmann and VPM algorithm Some iX3M models support a dual mode Buhlmann and VPM decompression algorithm. Currently libdivecomputer is only capable of reporting one of those two algorithms, but that's still better than returning an error. --- src/divesystem_idive_parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/divesystem_idive_parser.c b/src/divesystem_idive_parser.c index 1d19797..fb7efa6 100644 --- a/src/divesystem_idive_parser.c +++ b/src/divesystem_idive_parser.c @@ -50,6 +50,7 @@ #define BUHLMANN 0 #define VPM 1 +#define DUAL 2 typedef struct divesystem_idive_parser_t divesystem_idive_parser_t; @@ -365,6 +366,7 @@ divesystem_idive_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, return DC_STATUS_UNSUPPORTED; switch (parser->algorithm) { case BUHLMANN: + case DUAL: decomodel->type = DC_DECOMODEL_BUHLMANN; decomodel->conservatism = 0; decomodel->params.gf.low = parser->gf_low;