mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:03:23 +00:00
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>
This commit is contained in:
parent
767fd39ca0
commit
f22a708e27
1 changed files with 1 additions and 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue