diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-12 15:45:05 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-02-17 07:26:55 -0800 |
commit | 9fb37ea27f757c76324f9a101a54133cedd71922 (patch) | |
tree | b7d6c160c1c3402abe09db6c10ff1a1816c175c4 /core | |
parent | 9da9133372767b8e52887e47949c2cdf737d82a4 (diff) | |
download | subsurface-9fb37ea27f757c76324f9a101a54133cedd71922.tar.gz |
planner: remove print_mode parameter from calculate_deco_information()
Only 'false' was ever passed as value.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/profile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/profile.c b/core/profile.c index e13f95a90..d46db834e 100644 --- a/core/profile.c +++ b/core/profile.c @@ -989,7 +989,7 @@ static void calculate_ndl_tts(struct deco_state *ds, const struct dive *dive, st /* Let's try to do some deco calculations. */ static void calculate_deco_information(struct deco_state *ds, const struct deco_state *planner_ds, const struct dive *dive, - const struct divecomputer *dc, struct plot_info *pi, bool print_mode) + const struct divecomputer *dc, struct plot_info *pi) { int i, count_iteration = 0; double surface_pressure = (dc->surface_pressure.mbar ? dc->surface_pressure.mbar : get_surface_pressure_in_mbar(dive, true)) / 1000.0; @@ -1124,7 +1124,7 @@ static void calculate_deco_information(struct deco_state *ds, const struct deco_ * We don't for print-mode because this info doesn't show up there * If the ceiling hasn't cleared by the last data point, we need tts for VPM-B CVA calculation * It is not necessary to do these calculation on the first VPMB iteration, except for the last data point */ - if ((prefs.calcndltts && !print_mode && (decoMode() != VPMB || !planner_ds || !first_iteration)) || + if ((prefs.calcndltts && (decoMode() != VPMB || !planner_ds || !first_iteration)) || (decoMode() == VPMB && !planner_ds && i == pi->nr - 1)) { /* only calculate ndl/tts on every 30 seconds */ if ((entry->sec - last_ndl_tts_calc_time) < 30 && i != pi->nr - 1) { @@ -1383,7 +1383,7 @@ void create_plot_info_new(const struct dive *dive, const struct divecomputer *dc fill_o2_values(dive, dc, pi); /* .. and insert the O2 sensor data having 0 values. */ calculate_sac(dive, dc, pi); /* Calculate sac */ - calculate_deco_information(&plot_deco_state, planner_ds, dive, dc, pi, false); /* and ceiling information, using gradient factor values in Preferences) */ + calculate_deco_information(&plot_deco_state, planner_ds, dive, dc, pi); /* and ceiling information, using gradient factor values in Preferences) */ calculate_gas_information_new(dive, dc, pi); /* Calculate gas partial pressures */ |