Skip to content

Commit 93a885d

Browse files
jefdriesenmikeller
authored andcommitted
Add support for the average depth
1 parent 38fffb1 commit 93a885d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cressi_edy_parser.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ cressi_edy_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, unsign
141141
case DC_FIELD_MAXDEPTH:
142142
*((double *) value) = (bcd2dec (p[0x02] & 0x0F) * 100 + bcd2dec (p[0x03])) / 10.0;
143143
break;
144+
case DC_FIELD_AVGDEPTH:
145+
*((double *) value) = (bcd2dec (p[0x00] & 0x0F) * 100 + bcd2dec (p[0x01])) / 10.0;
146+
break;
144147
case DC_FIELD_GASMIX_COUNT:
145148
*((unsigned int *) value) = cressi_edy_parser_count_gasmixes(p);
146149
break;

0 commit comments

Comments
 (0)