From 652f7e9864b5a28ba03bdaa641139230364dae0e Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 21 Aug 2015 17:22:07 +0200 Subject: Don't do computationally expensive Boyle compensation when not using VPM-B Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- deco.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deco.c b/deco.c index 16089e32b..6f8f0f6d4 100644 --- a/deco.c +++ b/deco.c @@ -362,6 +362,9 @@ void boyles_law(double next_stop_pressure) { int ci; + if (!in_planner() || prefs.deco_mode != VPMB) + return; + // This should be a tautology but prevents a numerical instability. if (IS_FP_SAME(next_stop_pressure, first_stop_pressure)) return; -- cgit v1.2.3-70-g09d2