From 76c6daab408bb1fb34df40e406efca36f4779d6c Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 12 Dec 2014 14:51:25 +0100 Subject: [PATCH] Set sample setpoint correctly Forward the sample set-point setting as otherwise all ascents are planned on OC. Signed-off-by: Robert C. Helling --- planner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/planner.c b/planner.c index d6f1983..27781f6 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; -- 1.9.3 (Apple Git-50)