Don't ignore zero depth samples in freedive mode.
In freedive mode, samples are only 2 or 4 bytes large, thus a sample containing all 0x00 bytes represents a zero depth value and not some invalid data that should be ignored.
This commit is contained in:
parent
789fdb4d9a
commit
6b3874121d
@ -638,7 +638,8 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_
|
||||
dc_sample_value_t sample = {0};
|
||||
|
||||
// Ignore empty samples.
|
||||
if (array_isequal (data + offset, samplesize, 0x00) ||
|
||||
if ((parser->mode != FREEDIVE &&
|
||||
array_isequal (data + offset, samplesize, 0x00)) ||
|
||||
array_isequal (data + offset, samplesize, 0xFF)) {
|
||||
offset += samplesize;
|
||||
continue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user