Shearwater parser: fix typo in Teric support

The surface pressure was read from the wrong location for PNF logs.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-09-18 15:09:14 -07:00
parent 8f2ac8f61e
commit fb70928c83

View File

@ -694,7 +694,7 @@ shearwater_predator_parser_get_field (dc_parser_t *abstract, dc_field_type_t typ
break; break;
case DC_FIELD_ATMOSPHERIC: case DC_FIELD_ATMOSPHERIC:
idx = parser->pnf ? parser->block_offset[LOG_RECORD_OPENING_1] + 16 : 47; 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; break;
case DC_FIELD_DIVEMODE: case DC_FIELD_DIVEMODE:
*((dc_divemode_t *) value) = parser->mode; *((dc_divemode_t *) value) = parser->mode;