From 6f23ab9ed7afcd87d3cd70672bfe0966c55d33e1 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Tue, 10 Feb 2015 21:11:12 +0100 Subject: [PATCH] Fix the depth for the Aeris F11. Since the size of a sample is only 2 bytes, we were actually reading the depth value from the next sample. --- src/oceanic_atom2_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oceanic_atom2_parser.c b/src/oceanic_atom2_parser.c index 07c2e85..3748221 100644 --- a/src/oceanic_atom2_parser.c +++ b/src/oceanic_atom2_parser.c @@ -666,7 +666,7 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_ depth = (data[offset + 4] + (data[offset + 5] << 8)) & 0x0FFF; else if (parser->model == ATOM1) depth = data[offset + 3] * 16; - else if (parser->model == F10) + else if (parser->model == F10 || parser->model == F11) depth = array_uint16_le (data + offset); else depth = (data[offset + 2] + (data[offset + 3] << 8)) & 0x0FFF;