Fix the maximum depth
The upper bits appear to contain some other (currently unknown) information. The Oceanic VT Pro specifications list a maximum depth of 399 ft (120 m), which requires only 9 bits. The Oceanic application also ignores the higher bits.
This commit is contained in:
parent
3d3271abe1
commit
95920af7b7
@ -181,7 +181,7 @@ oceanic_vtpro_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, uns
|
||||
maxdepth = data[footer + 1];
|
||||
} else {
|
||||
oxygen = data[footer + 3];
|
||||
maxdepth = array_uint16_le(data + footer + 0) & 0x0FFF;
|
||||
maxdepth = array_uint16_le(data + footer + 0) & 0x01FF;
|
||||
}
|
||||
|
||||
dc_gasmix_t *gasmix = (dc_gasmix_t *) value;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user