From 85c31f0303c8ad6964f316a7cf48e7e4904ce4d1 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 30 Sep 2019 07:53:05 +0200 Subject: Analyze gasswitches in CCR bailout The test if we have to create gas switches wasn't yet aware of the bailout option. Reported-by: Dennis Arreborg Signed-off-by: Robert C. Helling --- core/planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/planner.c b/core/planner.c index fd4ed2c36..d488413c8 100644 --- a/core/planner.c +++ b/core/planner.c @@ -757,7 +757,7 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i best_first_ascend_cylinder = current_cylinder; /* Find the gases available for deco */ - if (po2) { // Don't change gas in CCR mode + if (divemode == CCR && !prefs.dobailout) { // Don't change gas in CCR mode gaschanges = NULL; gaschangenr = 0; } else { -- cgit v1.2.3-70-g09d2