summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-11-12 23:33:40 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-12 14:42:15 -0800
commita06befc0075c19afbec31130b6d1e0f4447a2498 (patch)
tree7a34547df9bb69bdbdeb078f3e58fd10dce9908c /planner.c
parent1617d437d413705977905673ddcde0d8ff0ba068 (diff)
downloadsubsurface-a06befc0075c19afbec31130b6d1e0f4447a2498.tar.gz
Support different salinity in planner
Depth is often mentioned in a length unit, but what we care about is pressure. When diving in fresh water the pressure is lower than the same depth in salt water. This adds support for using different salinities in planning. Signed-off-by: Anton Lundin <glance@acc.umu.se> 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 a4181907e..6f09b8e5f 100644
--- a/planner.c
+++ b/planner.c
@@ -259,6 +259,7 @@ static void create_dive_from_plan(struct diveplan *diveplan, bool track_gas)
printf("in create_dive_from_plan\n");
dump_plan(diveplan);
#endif
+ displayed_dive.salinity = diveplan->salinity;
// reset the cylinders and clear out the samples and events of the
// displayed dive so we can restart
reset_cylinders(&displayed_dive, track_gas);