From 43599742a3ca3600196156d1be233ebd05c8dfb6 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Tue, 3 Jan 2017 15:14:42 +0100 Subject: Display surface interval in diveplan ...instead of just stating "repetitive dive". As requested by a user. Signed-off-by: Robert C. Helling --- core/divelist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/divelist.c') diff --git a/core/divelist.c b/core/divelist.c index f4762ddef..fdc1f906b 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -361,7 +361,7 @@ static struct gasmix air = { .o2.permille = O2_IN_AIR, .he.permille = 0 }; /* take into account previous dives until there is a 48h gap between dives */ /* return true if this is a repetitive dive */ -bool init_decompression(struct dive *dive) +unsigned int init_decompression(struct dive *dive) { int i, divenr = -1; unsigned int surface_time; @@ -448,7 +448,7 @@ bool init_decompression(struct dive *dive) } // I do not dare to remove this call. We don't need the result but it might have side effects. Bummer. tissue_tolerance_calc(dive, surface_pressure); - return deco_init; + return surface_time; } void update_cylinder_related_info(struct dive *dive) -- cgit v1.2.3-70-g09d2