From fb70928c83ee09f7a74158d7c316fb18334caf6e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 18 Sep 2018 15:09:14 -0700 Subject: [PATCH] Shearwater parser: fix typo in Teric support The surface pressure was read from the wrong location for PNF logs. Signed-off-by: Dirk Hohndel --- src/shearwater_predator_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shearwater_predator_parser.c b/src/shearwater_predator_parser.c index 6c2ac18..57a6487 100644 --- a/src/shearwater_predator_parser.c +++ b/src/shearwater_predator_parser.c @@ -694,7 +694,7 @@ shearwater_predator_parser_get_field (dc_parser_t *abstract, dc_field_type_t typ break; case DC_FIELD_ATMOSPHERIC: idx = parser->pnf ? parser->block_offset[LOG_RECORD_OPENING_1] + 16 : 47; - *((double *) value) = array_uint16_be (data + 47) / 1000.0; + *((double *) value) = array_uint16_be (data + idx) / 1000.0; break; case DC_FIELD_DIVEMODE: *((dc_divemode_t *) value) = parser->mode;