summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-08-19 23:14:00 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-20 07:28:00 -0700
commit0bb65a17cb77084a345f12581b5b39f4dafcae4a (patch)
tree51cbce1e73959117fd43f174c97c19413227fa2a /dive.h
parent2a5073113927f5ab5e6f38a7ac6382bd44e7ad5b (diff)
downloadsubsurface-0bb65a17cb77084a345f12581b5b39f4dafcae4a.tar.gz
Use boyle_compensation in profile
otherwise VPM-B planned profiles seem to violate the ceiling. This needs the first_stop_pressure to be available also in the profile, so I made it global in planner.c Important lesson: If you want to use deco_allowed_depth on a tissue_tolerance that comes from a VPM-B planned dive, you have to call boyles_law() before add_segment()! Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index ee3f63701..0125b76a5 100644
--- a/dive.h
+++ b/dive.h
@@ -801,7 +801,7 @@ extern double restore_deco_state(char *data);
extern void nuclear_regeneration(double time);
extern void vpmb_start_gradient();
extern void vpmb_next_gradient(double deco_time, double surface_pressure);
-extern void boyles_law(double first_stop_pressure, double next_stop_pressure);
+extern void boyles_law(double next_stop_pressure);
/* this should be converted to use our types */
struct divedatapoint {