Fix the Apeks DSX tank number
Since commit f5f855d4284a84d5249462c46a9c4f6107a12b09, the tank number should remain one based instead of zero based.
This commit is contained in:
parent
8745a3b95a
commit
dcf842cd9d
@ -947,7 +947,7 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_
|
||||
pressure = array_uint16_le (data + offset + 4);
|
||||
else if (parser->model == DSX) {
|
||||
pressure = array_uint16_le (data + offset + 14);
|
||||
tank = ((data[offset] & 0xF0) >> 4) - 1;
|
||||
tank = (data[offset] & 0xF0) >> 4;
|
||||
} else {
|
||||
pressure -= data[offset + 1];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user