diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-04 07:36:07 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-04 07:36:07 -0700 |
commit | 825eb019abf1ee7fb477a43f76da573a60fea188 (patch) | |
tree | 0c7b332818b86d26bec86ec71400a4c439d24dd2 /dive.h | |
parent | 41953c8c46dda9e652927cc27041977f868bcef5 (diff) | |
download | subsurface-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.h')
-rw-r--r-- | dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -614,6 +614,7 @@ extern bool has_hr_data(struct divecomputer *dc); extern void sort_table(struct dive_table *table); extern struct dive *fixup_dive(struct dive *dive); +extern void fixup_dc_duration(struct divecomputer *dc); extern int dive_getUniqID(struct dive *d); extern unsigned int dc_airtemp(struct divecomputer *dc); extern unsigned int dc_watertemp(struct divecomputer *dc); |