summaryrefslogtreecommitdiffstats
path: root/core/libdivecomputer.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r--core/libdivecomputer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index 1455e3503..cd52866fa 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -749,8 +749,8 @@ static int dive_cb(const unsigned char *data, unsigned int size,
device_data_t *devdata = userdata;
struct dive *dive = NULL;
- /* reset the deco / ndl data */
- ndl = stoptime = stopdepth = 0;
+ /* reset static data, that is only valid per dive */
+ ndl = stoptime = stopdepth = po2 = 0;
in_deco = false;
current_gas_index = -1;