Changeset 9b5d3b6 in subsurface


Ignore:
Timestamp:
Apr 24, 2017, 7:51:12 AM (5 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
1e6f023
Parents:
51ee9d4
git-author:
Jan Mulder <jlmulder@…> (04/24/17 07:28:06)
git-committer:
Dirk Hohndel <dirk@…> (04/24/17 07:51:12)
Message:

Do not carry po2 setpoint data over dive boundaries

The file static po2 value, used to set the setpoint data, was not re-initialized
at the parsing of a dive during import from the divecomputer. So, in one import session,
the po2 was transferred from one dive to the next, obviously resulting in weird bugs, due
to possible wrong po2 settings.

Signed-off-by: Jan Mulder <jlmulder@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/libdivecomputer.c

    rf8203b8 r9b5d3b6  
    750750        struct dive *dive = NULL;
    751751
    752         /* reset the deco / ndl data */
    753         ndl = stoptime = stopdepth = 0;
     752        /* reset static data, that is only valid per dive */
     753        ndl = stoptime = stopdepth = po2 = 0;
    754754        in_deco = false;
    755755        current_gas_index = -1;
Note: See TracChangeset for help on using the changeset viewer.