Add support for the 300bar pressure sensor
The new 300bar pressure transmitter records the pressure in units of 2bar, because otherwise the value doesn't fit into an 8-bit integer.
This commit is contained in:
parent
90bb40e5ea
commit
cf81ac79b3
@ -585,6 +585,11 @@ divesystem_idive_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callba
|
||||
unsigned int flags = data[offset + 47] & 0xF0;
|
||||
unsigned int pressure = data[offset + 49];
|
||||
|
||||
if (flags & 0x20) {
|
||||
// 300 bar transmitter.
|
||||
pressure *= 2;
|
||||
}
|
||||
|
||||
if (flags & 0x80) {
|
||||
// No active transmitter available
|
||||
} else if (flags & 0x40) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user