mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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@xs4all.nl>
This commit is contained in:
parent
51ee9d4405
commit
9b5d3b60ab
1 changed files with 2 additions and 2 deletions
|
@ -749,8 +749,8 @@ static int dive_cb(const unsigned char *data, unsigned int size,
|
|||
device_data_t *devdata = userdata;
|
||||
struct dive *dive = NULL;
|
||||
|
||||
/* reset the deco / ndl data */
|
||||
ndl = stoptime = stopdepth = 0;
|
||||
/* reset static data, that is only valid per dive */
|
||||
ndl = stoptime = stopdepth = po2 = 0;
|
||||
in_deco = false;
|
||||
current_gas_index = -1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue