summaryrefslogtreecommitdiffstats
path: root/core/profile.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-09-17 21:06:44 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-10-01 23:58:55 +0300
commit1f50485732f5a84dc1e41014f760f55852da188a (patch)
treed706fe17091995037933ecef56207d7ecf904ebe /core/profile.c
parent7713c7e607b11c0828decdbf35d910280153f880 (diff)
downloadsubsurface-1f50485732f5a84dc1e41014f760f55852da188a.tar.gz
More VPMB state in special structure
... and reset deco information in profile ceiling computation. The planner test then needs to know about the struct holding the deco state. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/profile.c')
-rw-r--r--core/profile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/profile.c b/core/profile.c
index 4ff27fcd7..813e69fc2 100644
--- a/core/profile.c
+++ b/core/profile.c
@@ -31,7 +31,6 @@ static struct plot_data *last_pi_entry_new = NULL;
void populate_pressure_information(struct dive *, struct divecomputer *, struct plot_info *, int);
extern bool in_planner();
-extern pressure_t first_ceiling_pressure;
#ifdef DEBUG_PI
/* debugging tool - not normally used */
@@ -1015,7 +1014,7 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru
if (current_ceiling > first_ceiling) {
time_deep_ceiling = t1;
first_ceiling = current_ceiling;
- first_ceiling_pressure.mbar = depth_to_mbar(first_ceiling, dive);
+ deco_state->first_ceiling_pressure.mbar = depth_to_mbar(first_ceiling, dive);
if (first_iteration) {
nuclear_regeneration(t1);
vpmb_start_gradient();