summaryrefslogtreecommitdiffstats
path: root/core/deco.h
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-10-26 16:21:47 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-10-27 20:36:14 -0700
commitebddf95252f4dcb52518220a684246746820a1be (patch)
tree72352fbbf83c41dd60c260ac973530b91710ca68 /core/deco.h
parenta2d6bcf23fadceae28081ba055e631c886ca6603 (diff)
downloadsubsurface-ebddf95252f4dcb52518220a684246746820a1be.tar.gz
ToolTipItem: show gf line based on correct gradient factor preferences
Calculate gfline using the gradient factor that is set by the planner preferences when in the planner, and by the general prefs when not in the planner. This is achieved by doing the gradient factor calculation in dive.c, where buehlmann_config is defined. Previously, the gfline was calculated using the general preferences gfhigh and gflow, even when in the planner. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/deco.h')
-rw-r--r--core/deco.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/deco.h b/core/deco.h
index fd3b94a9f..bfedd6046 100644
--- a/core/deco.h
+++ b/core/deco.h
@@ -13,6 +13,8 @@ extern double gf_low_pressure_this_dive;
extern int deco_allowed_depth(double tissues_tolerance, double surface_pressure, struct dive *dive, bool smooth);
+double get_gf(double ambpressure_bar, const struct dive *dive);
+
#ifdef __cplusplus
}
#endif