mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
During DC import reset cns, ndl, other values inbetween dives
Reset cns and heartbeat to 0 Reset ndl and bearing to -1 Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
85d00d1e7c
commit
72129289a8
1 changed files with 2 additions and 1 deletions
|
@ -762,7 +762,8 @@ static int dive_cb(const unsigned char *data, unsigned int size,
|
|||
struct dive *dive = NULL;
|
||||
|
||||
/* reset static data, that is only valid per dive */
|
||||
ndl = stoptime = stopdepth = po2 = 0;
|
||||
stoptime = stopdepth = po2 = cns = heartbeat = 0;
|
||||
ndl = bearing = -1;
|
||||
in_deco = false;
|
||||
current_gas_index = -1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue