summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-06-05 17:28:14 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-05 08:46:24 -0700
commit58952b15b4ac6bc7dcce5fb15cf4d4fcb3a34a83 (patch)
tree6bba3d4c61cc36114a76501b6d267322081749a0 /planner.c
parent9c7284b40343e60985870084af1e44544eaea437 (diff)
downloadsubsurface-58952b15b4ac6bc7dcce5fb15cf4d4fcb3a34a83.tar.gz
Switch to the new gasmix structure in dump_plan
dump_plan wasn't updated when the switch from he/o2 to gasmix was done in the planner code, this makes it compile again. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 005fc6003..cf9f36463 100644
--- a/planner.c
+++ b/planner.c
@@ -46,7 +46,7 @@ void dump_plan(struct diveplan *diveplan)
diveplan->surface_pressure);
dp = diveplan->dp;
while (dp) {
- printf("\t%3u:%02u: %dmm gas: %d o2 %d h2\n", FRACTION(dp->time, 60), dp->depth, dp->o2, dp->he);
+ printf("\t%3u:%02u: %dmm gas: %d o2 %d h2\n", FRACTION(dp->time, 60), dp->depth, get_o2(&dp->gasmix), get_he(&dp->gasmix));
dp = dp->next;
}
}