aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 00:09:59 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 00:09:59 +0000
commit3e5cb7e2aa00a13542ac6d02af3ef8ab639112d7 (patch)
tree57392a7b3270df9e84a4c9b1c9117b73abca0507 /dive.h
parentee7dd4307a442148598299db1152461b6cbf8270 (diff)
downloadsubsurface-3e5cb7e2aa00a13542ac6d02af3ef8ab639112d7.tar.gz
Fix per_cylinder_mean_depth calculation for CCR
This patch is bigger than necessary because I also renamed the get_cylinder_use() function to the much more accurate get_cylinder_idx_by_use(). If we have no gas changes (except for a possible explicit first gas), (which in the CCR case also means no bailout), this code will give you correct per cylinder depth and duration for oxygen and diluent and therefore create more reasonable gas consumption data for CCR dives. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index f687d2868..9a6242fa9 100644
--- a/dive.h
+++ b/dive.h
@@ -341,7 +341,7 @@ struct dive {
int oxygen_cylinder_index, diluent_cylinder_index; // CCR dive cylinder indices
};
-extern int get_cylinder_use(struct dive *dive, enum cylinderuse cylinder_use_type);
+extern int get_cylinder_idx_by_use(struct dive *dive, enum cylinderuse cylinder_use_type);
/* when selectively copying dive information, which parts should be copied? */
struct dive_components {