summaryrefslogtreecommitdiffstats
path: root/core/gaspressures.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-05 23:18:28 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-18 05:50:22 -0700
commit68147c42255598992f2be23e53c9bbcf76e65b91 (patch)
treea8dcf4a7fee485b5af674f68b9015d97db674c87 /core/gaspressures.c
parent469cc68b029ac3308b4338a43acfa21679493e8b (diff)
downloadsubsurface-68147c42255598992f2be23e53c9bbcf76e65b91.tar.gz
Cleanup: update comment in core/gaspressures.c
The comment to populate_pressure_information() was mentioning gas pressures that didn't exist. Remove these parts. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/gaspressures.c')
-rw-r--r--core/gaspressures.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/core/gaspressures.c b/core/gaspressures.c
index 2109c2702..573e50475 100644
--- a/core/gaspressures.c
+++ b/core/gaspressures.c
@@ -357,15 +357,14 @@ static void debug_print_pressures(struct plot_info *pi)
}
#endif
-/* This function goes through the list of tank pressures, either SENSOR_PRESSURE(entry) or O2CYLINDER_PRESSURE(entry),
- * of structure plot_info for the dive profile where each item in the list corresponds to one point (node) of the
- * profile. It finds values for which there are no tank pressures (pressure==0). For each missing item (node) of
- * tank pressure it creates a pr_track_alloc structure that represents a segment on the dive profile and that
- * contains tank pressures. There is a linked list of pr_track_alloc structures for each cylinder. These pr_track_alloc
- * structures ultimately allow for filling the missing tank pressure values on the dive profile using the depth_pressure
- * of the dive. To do this, it calculates the summed pressure-time value for the duration of the dive and stores these
- * in the pr_track_alloc structures. If diluent_flag = 1, then DILUENT_PRESSURE(entry) is used instead of SENSOR_PRESSURE.
- * This function is called by create_plot_info_new() in profile.c
+/* This function goes through the list of tank pressures, of structure plot_info for the dive profile where each
+ * item in the list corresponds to one point (node) of the profile. It finds values for which there are no tank
+ * pressures (pressure==0). For each missing item (node) of tank pressure it creates a pr_track_alloc structure
+ * that represents a segment on the dive profile and that contains tank pressures. There is a linked list of
+ * pr_track_alloc structures for each cylinder. These pr_track_alloc structures ultimately allow for filling
+ * the missing tank pressure values on the dive profile using the depth_pressure of the dive. To do this, it
+ * calculates the summed pressure-time value for the duration of the dive and stores these * in the pr_track_alloc
+ * structures. This function is called by create_plot_info_new() in profile.c
*/
void populate_pressure_information(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, int sensor)
{