From 032c3258edc875ea39ce3124a40e23a22bd6ffe7 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Tue, 7 Feb 2017 09:18:19 +0100 Subject: Reset VPM-B state between repetitive dives This resets the maximum crushing pressures and the maximal ambient pressure between repetitive dives to prevent anomalies that a dive produces a shorter deco when following another one than without. Reported-by: sfuchs@gmx.de Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- core/divelist.c | 1 + 1 file changed, 1 insertion(+) (limited to 'core/divelist.c') diff --git a/core/divelist.c b/core/divelist.c index b28dd5ef3..44401b7c0 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -423,6 +423,7 @@ unsigned int init_decompression(struct dive *dive) } add_dive_to_deco(pdive); laststart = pdive->when; + clear_vpmb_state(); #if DECO_CALC_DEBUG & 2 printf("added dive #%d\n", pdive->number); dump_tissues(); -- cgit v1.2.3-70-g09d2