diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-12-12 14:51:25 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-12 07:15:22 -0800 |
commit | f22a708e273cf8dcd16d313fb6ad4833f8863425 (patch) | |
tree | 70decde670b46fbc747d3493ada36175e7f7a702 /planner.c | |
parent | 767fd39ca05c2a9821329975d1cc1f4f12b18b30 (diff) | |
download | subsurface-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |