From a3e87bf1a1901f4e4a17d7344599f361a8f75743 Mon Sep 17 00:00:00 2001 From: Jan Darowski Date: Sat, 15 Aug 2015 13:45:42 +0200 Subject: [PATCH] VPM-B: Fix trial_ascent() for vpm-b. Previously, current depth was checked, instead of the depth after the move. Signed-off-by: Jan Darowski --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 9c0c95f45..3723b4056 100644 --- a/planner.c +++ b/planner.c @@ -884,7 +884,7 @@ bool trial_ascent(int trial_depth, int stoplevel, int avg_depth, int bottom_time clear_to_ascend = false; break; } - if (prefs.deco_mode == VPMB && (!is_vpmb_ok(depth_to_mbar(trial_depth, &displayed_dive) / 1000.0))){ + if (prefs.deco_mode == VPMB && (!is_vpmb_ok(depth_to_mbar(trial_depth - deltad, &displayed_dive) / 1000.0))){ clear_to_ascend = false; break; }