mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9da9133372
commit
9fb37ea27f
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
/* 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,
|
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;
|
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;
|
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
|
* 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
|
* 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 */
|
* 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)) {
|
(decoMode() == VPMB && !planner_ds && i == pi->nr - 1)) {
|
||||||
/* only calculate ndl/tts on every 30 seconds */
|
/* only calculate ndl/tts on every 30 seconds */
|
||||||
if ((entry->sec - last_ndl_tts_calc_time) < 30 && i != pi->nr - 1) {
|
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. */
|
fill_o2_values(dive, dc, pi); /* .. and insert the O2 sensor data having 0 values. */
|
||||||
calculate_sac(dive, dc, pi); /* Calculate sac */
|
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 */
|
calculate_gas_information_new(dive, dc, pi); /* Calculate gas partial pressures */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue