[PATCH] Switch to the new gasmix structure in dump_plan

Anton Lundin glance at acc.umu.se
Thu Jun 5 08:28:14 PDT 2014


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 at acc.umu.se>
---
 planner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/planner.c b/planner.c
index 438b84c..242fbac 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;
 	}
 }
-- 
1.9.1



More information about the subsurface mailing list