summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/libdivecomputer.c3
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;