summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-12-12 14:51:25 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-12 07:15:22 -0800
commitf22a708e273cf8dcd16d313fb6ad4833f8863425 (patch)
tree70decde670b46fbc747d3493ada36175e7f7a702 /planner.c
parent767fd39ca05c2a9821329975d1cc1f4f12b18b30 (diff)
downloadsubsurface-f22a708e273cf8dcd16d313fb6ad4833f8863425.tar.gz
Set sample setpoint correctly
Forward the sample set-point setting as otherwise all ascents are planned on OC. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/planner.c b/planner.c
index d6f19832c..27781f6f3 100644
--- a/planner.c
+++ b/planner.c
@@ -333,6 +333,7 @@ static void create_dive_from_plan(struct diveplan *diveplan, bool track_gas)
/* set po2 at beginning of this segment */
/* and keep it valid for last sample - where it likely doesn't matter */
sample[-1].setpoint.mbar = po2;
+ sample->setpoint.mbar = po2;
sample->time.seconds = lasttime = time;
sample->depth.mm = lastdepth = depth;
sample->manually_entered = dp->entered;