summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-04 07:36:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-04 07:36:07 -0700
commit825eb019abf1ee7fb477a43f76da573a60fea188 (patch)
tree0c7b332818b86d26bec86ec71400a4c439d24dd2 /dive.c
parent41953c8c46dda9e652927cc27041977f868bcef5 (diff)
downloadsubsurface-825eb019abf1ee7fb477a43f76da573a60fea188.tar.gz
Planner: show mean depth
Almost invisible, mostly looking like an odd bug in the profile code, there was a tiny red line at depth 0 in the planned profile. Turns out that was the missing mean depth. We didn't populate enough data in the dive computer of the dive we generated from the plan (and the length of the depth line was incorrectly determined by the duration of the dive instead of the duration stored in the dive computer). Fixes #570 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.c b/dive.c
index dd847c261..472f8c2dc 100644
--- a/dive.c
+++ b/dive.c
@@ -542,7 +542,7 @@ static void update_temperature(temperature_t *temperature, int new)
*
* This ignores any surface time in the middle of the dive.
*/
-static void fixup_dc_duration(struct divecomputer *dc)
+void fixup_dc_duration(struct divecomputer *dc)
{
int duration, i;
int lasttime, lastdepth, depthtime;