summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 07:23:20 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 07:23:20 +0000
commitfa181d1ded081651f000e10b05e0ea9ddce75ea1 (patch)
tree61218c0596d111614100b1ca9d65a9d57a7b3cf7 /profile.c
parent675646dd2f654a09dbe158515035ccb4d42d67ba (diff)
downloadsubsurface-fa181d1ded081651f000e10b05e0ea9ddce75ea1.tar.gz
More CCR code cleanup
Random constants are bad. Let's use the indices that we already calculated (and true and false if we mean boolean values). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/profile.c b/profile.c
index 82d4b653d..ff6de402e 100644
--- a/profile.c
+++ b/profile.c
@@ -1015,13 +1015,13 @@ void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plo
}
last_pi_entry_new = populate_plot_entries(dive, dc, pi);
- check_gas_change_events(dive, dc, pi); /* Populate the gas index from the gas change events */
- setup_gas_sensor_pressure(dive, dc, pi); /* Try to populate our gas pressure knowledge */
- populate_pressure_information(dive, dc, pi, NONDILUENT); /* .. calculate missing pressure entries for all gasses except diluent */
- if (dc->dctype == CCR) /* For CCR dives.. */
- populate_pressure_information(dive, dc, pi, DILUENT); /* .. calculate missing diluent gas pressure entries */
+ check_gas_change_events(dive, dc, pi); /* Populate the gas index from the gas change events */
+ setup_gas_sensor_pressure(dive, dc, pi); /* Try to populate our gas pressure knowledge */
+ populate_pressure_information(dive, dc, pi, false); /* .. calculate missing pressure entries for all gasses except diluent */
+ if (dc->dctype == CCR) /* For CCR dives.. */
+ populate_pressure_information(dive, dc, pi, true); /* .. calculate missing diluent gas pressure entries */
- fill_o2_values(dc, pi, dive); /* .. and insert the O2 sensor data having 0 values. */
+ fill_o2_values(dc, pi, dive); /* .. and insert the O2 sensor data having 0 values. */
calculate_sac(dive, pi); /* Calculate sac */
calculate_deco_information(dive, dc, pi, false); /* and ceiling information, using gradient factor values in Preferences) */
calculate_gas_information_new(dive, pi); /* Calculate gas partial pressures */