diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-11-14 13:59:13 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2017-11-16 08:32:46 +0100 |
commit | 72129289a8c53609d8f15c95b4fb3167c2f4e42f (patch) | |
tree | 8900b1a8ace0904151e1902d4e2989371f3e4df1 /core/libdivecomputer.c | |
parent | 85d00d1e7cdb85f1a40b70023b2025a038979176 (diff) | |
download | subsurface-72129289a8c53609d8f15c95b4fb3167c2f4e42f.tar.gz |
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>
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r-- | core/libdivecomputer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index c80c8f28b..88edeca52 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -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; |