mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
DLF import: set no_o2sensors in CCR/PSCR mode
This triggers the rest of the code to treat the sensor value as our ppO2 value. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e0c0ba4836
commit
8997fc88a3
1 changed files with 4 additions and 0 deletions
|
@ -2590,6 +2590,10 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
|
|||
/* Done with parsing what we know about the dive header */
|
||||
ptr += 32;
|
||||
|
||||
// We're going to interpret ppO2 saved as a sensor value in these modes.
|
||||
if (cur_dc->divemode == CCR || cur_dc->divemode == PSCR)
|
||||
cur_dc->no_o2sensors = 1;
|
||||
|
||||
while (ptr < buffer + size) {
|
||||
time = ((ptr[0] >> 4) & 0x0f) +
|
||||
((ptr[1] << 4) & 0xff0) +
|
||||
|
|
Loading…
Add table
Reference in a new issue