From 72129289a8c53609d8f15c95b4fb3167c2f4e42f Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Tue, 14 Nov 2017 13:59:13 +0100 Subject: 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 --- core/libdivecomputer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') 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; -- cgit v1.2.3-70-g09d2