diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-10-28 13:48:15 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-28 14:04:19 -0700 |
commit | e32ba4d6d8115176e1ce0f4960926985b52164ca (patch) | |
tree | 8b45963724d70eaf69d2af61b81c27c836a1213e /dive.h | |
parent | 874754e22b8678ab3d5314c56fda860ea844fc55 (diff) | |
download | subsurface-e32ba4d6d8115176e1ce0f4960926985b52164ca.tar.gz |
Improve tank handling for Cobalt
This isn't Cobalt specific, this is specific to dive computers that
indicate the first tank that's in use with a gaschange event that
coincides with the first sample.
We need to make sure that we suppress showing that gas change event
(regardless which cylinder it goes to) and instead set the correct
cylinder index from the very start of the dive.
This works with the test data I have and doesn't seem to break thing with
any of the files that I tried... but I'm worried that this is not the
right way to do things.
Fixes #742
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -360,6 +360,7 @@ extern unsigned int dive_get_picture_count(struct dive *d); extern void picture_load_exif_data(struct picture *p, timestamp_t *timestamp); extern void dive_set_geodata_from_picture(struct dive *d, struct picture *pic); +extern int explicit_first_cylinder(struct dive *dive, struct divecomputer *dc); static inline int dive_has_gps_location(struct dive *dive) { |