summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-08-27 14:27:45 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-27 07:03:53 -0700
commitc5f92c750157be9aa11a2a3bc3619269e11d7c70 (patch)
tree8588b8e8222bfa3fee214182fb47bc3bc811e94f /planner.c
parentfe00abc77472f7142cd5acfe1f0dff9de99de015 (diff)
downloadsubsurface-c5f92c750157be9aa11a2a3bc3619269e11d7c70.tar.gz
Rename variable to better reflect what it does
The pressure for the Boyle compensation is of the first ceiling, i.e. the ceiling seen from the bottom rather than the first stop. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/planner.c b/planner.c
index 1dda2f4fe..ae90938c2 100644
--- a/planner.c
+++ b/planner.c
@@ -33,7 +33,7 @@ int decostoplevels_imperial[] = { 0, 3048, 6096, 9144, 12192, 15240, 18288, 2133
double plangflow, plangfhigh;
bool plan_verbatim, plan_display_runtime, plan_display_duration, plan_display_transitions;
-pressure_t first_stop_pressure;
+pressure_t first_ceiling_pressure;
const char *disclaimer;
@@ -1119,9 +1119,9 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
stopidx++;
vpmb_first_stop = stoplevels[stopidx];
}
- first_stop_pressure.mbar = depth_to_mbar(vpmb_first_stop, &displayed_dive);
+ first_ceiling_pressure.mbar = depth_to_mbar(vpmb_first_stop, &displayed_dive);
} else {
- first_stop_pressure.mbar = 0;
+ first_ceiling_pressure.mbar = 0;
}
//CVA
@@ -1143,7 +1143,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
breaktime = -1;
breakcylinder = 0;
o2time = 0;
- first_stop_pressure.mbar = depth_to_mbar(deco_allowed_depth(tissue_tolerance,
+ first_ceiling_pressure.mbar = depth_to_mbar(deco_allowed_depth(tissue_tolerance,
diveplan->surface_pressure / 1000.0,
&displayed_dive,
1),