Fix the depth decoding for the Mares Nemo Wide.

The depth is reduced to a 11 bit value. The meaning of the now unused
bit is still unknown.
This commit is contained in:
Jef Driesen 2011-09-30 21:50:27 +02:00
parent f526cdd3d9
commit b57423cc54

View File

@ -298,7 +298,7 @@ mares_nemo_parser_samples_foreach (parser_t *abstract, sample_callback_t callbac
unsigned int idx = 2 + parser->sample_size * i;
unsigned int value = array_uint16_le (data + idx);
unsigned int depth = value & 0x0FFF;
unsigned int depth = value & 0x07FF;
unsigned int ascent = (value & 0xC000) >> 14;
unsigned int violation = (value & 0x2000) >> 13;
unsigned int deco = (value & 0x1000) >> 12;