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:
Stefan Fuchs 2017-11-14 13:59:13 +01:00 committed by Jan Mulder
parent 85d00d1e7c
commit 72129289a8

View file

@ -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;