From f22a708e273cf8dcd16d313fb6ad4833f8863425 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 12 Dec 2014 14:51:25 +0100 Subject: Set sample setpoint correctly Forward the sample set-point setting as otherwise all ascents are planned on OC. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- planner.c | 1 + 1 file changed, 1 insertion(+) (limited to 'planner.c') 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; -- cgit v1.2.3-70-g09d2