summaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-01-03 15:14:42 +0100
committerGravatar Subsurface <dirk@subsurface-divelog.org>2017-01-03 22:28:18 -0800
commit43599742a3ca3600196156d1be233ebd05c8dfb6 (patch)
tree278c3c19e80d5424a6c8093c572ab9fe8d712f55 /core/divelist.c
parent72bcb6481f3b935444d7868a74599dda133f9b43 (diff)
downloadsubsurface-43599742a3ca3600196156d1be233ebd05c8dfb6.tar.gz
Display surface interval in diveplan
...instead of just stating "repetitive dive". As requested by a user. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/divelist.c')
-rw-r--r--core/divelist.c4
1 files changed, 2 insertions, 2 deletions
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)