diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2017-10-08 19:29:48 +1100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-10-08 23:16:40 +0200 |
commit | f9d05a803875e947cebc7596d9ba078302c3f75f (patch) | |
tree | a53d6c0780cee82aa270628ef41b1872f7e72d88 /core/profile.c | |
parent | fb4221311107013133b2c8ed55e452135ba4bddf (diff) | |
download | subsurface-f9d05a803875e947cebc7596d9ba078302c3f75f.tar.gz |
VPM-B profile: calculate parameters when in planner mode
Calculating parameters when in the planner mode is necessary to display the correct ceiling.
Fixes #601
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Diffstat (limited to 'core/profile.c')
-rw-r--r-- | core/profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/profile.c b/core/profile.c index b3bf7cff5..53eff57e6 100644 --- a/core/profile.c +++ b/core/profile.c @@ -998,7 +998,7 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru entry->ceiling = (entry - 1)->ceiling; } else { /* Keep updating the VPM-B gradients until the start of the ascent phase of the dive. */ - if (decoMode() == VPMB && !in_planner() && last_ceiling >= first_ceiling && first_iteration == true) { + if (decoMode() == VPMB && last_ceiling >= first_ceiling && first_iteration == true) { nuclear_regeneration(t1); vpmb_start_gradient(); /* For CVA calculations, start by guessing deco time = dive time remaining */ @@ -1012,7 +1012,7 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru current_ceiling = entry->ceiling; last_ceiling = current_ceiling; /* If using VPM-B outside the planner, take first_ceiling_pressure as the deepest ceiling */ - if (decoMode() == VPMB && !in_planner()) { + if (decoMode() == VPMB) { if (current_ceiling > first_ceiling) { time_deep_ceiling = t1; first_ceiling = current_ceiling; |