Fix the temperature for the Sherwood Amphos.
The sign bit is stored at a different offset.
This commit is contained in:
parent
598377ec44
commit
134da18190
@ -620,11 +620,11 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_
|
||||
unsigned int sign;
|
||||
if (parser->model == DG03 || parser->model == PROPLUS3)
|
||||
sign = (~data[offset + 5] & 0x04) >> 2;
|
||||
else if (parser->model == VOYAGER2G)
|
||||
else if (parser->model == VOYAGER2G || parser->model == AMPHOS)
|
||||
sign = (data[offset + 5] & 0x04) >> 2;
|
||||
else if (parser->model == ATOM2 || parser->model == PROPLUS21 ||
|
||||
parser->model == EPICA || parser->model == EPICB ||
|
||||
parser->model == ATMOSAI2 || parser->model == AMPHOS ||
|
||||
parser->model == ATMOSAI2 ||
|
||||
parser->model == WISDOM2 || parser->model == WISDOM3)
|
||||
sign = (data[offset + 0] & 0x80) >> 7;
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user