From 4c19d8a67814586322f123715bb5d226c18e7682 Mon Sep 17 00:00:00 2001
From: Joakim Bygdell <j.bygdell@gmail.com>
Date: Thu, 9 Apr 2015 20:26:56 +0200
Subject: [PATCH 3/3] Recmode: Fix ascent gas consumption.

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
---
 planner.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/planner.c b/planner.c
index bc7f9c4..9de6a21 100644
--- a/planner.c
+++ b/planner.c
@@ -806,9 +806,9 @@ void track_ascent_gas(int depth, cylinder_t *cylinder, int avg_depth, int bottom
 		int deltad = ascent_velocity(depth, avg_depth, bottom_time) * TIMESTEP;
 		if (deltad > depth)
 			deltad = depth;
-		update_cylinder_pressure(&displayed_dive, depth, depth - deltad, TIMESTEP, prefs.bottomsac, cylinder, true);
+		update_cylinder_pressure(&displayed_dive, depth, depth - deltad, TIMESTEP, prefs.decosac, cylinder, true);
 		if (depth <= 5000 && safety_stop){
-			update_cylinder_pressure(&displayed_dive, 5000, 5000, 180, prefs.bottomsac, cylinder, true);
+			update_cylinder_pressure(&displayed_dive, 5000, 5000, 180, prefs.decosac, cylinder, true);
 			safety_stop = false;
 		}
 		depth -= deltad;
-- 
2.3.2 (Apple Git-55)

