summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Robert Helling <helling@atdotde.de>2017-02-03 07:32:27 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-03 07:43:00 -0800
commit67de8f3a4960941f7de7b49bac4a93e4448fdd63 (patch)
tree7d00e5dcb59654171db6078299f3122729f6f846 /core
parent8a8315d6fee28e71c63062c3332d82e1071c70d4 (diff)
downloadsubsurface-67de8f3a4960941f7de7b49bac4a93e4448fdd63.tar.gz
Correct: Handle more tanks than gasmixes
When Suunto Vytecs are used in gauge mode they don't record gasmixes. If a tank pressure sensor is present they nevertheless record the pressures. This patch handles this situation by assuming the tanks contain air (and warning the user about this). [Dirk Hohndel: I had mistakenly pushed out an earlier version of this commit, so this fixes things up to the final version] Reported-by: antonnorth@gmail.com Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/libdivecomputer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index 1ad4a635b..b7eb4c32e 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -96,10 +96,10 @@ static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t
if (rc == DC_STATUS_SUCCESS) {
if (ntanks && ntanks < ngases) {
shown_warning = true;
- report_error("Warning: different number of gases (%d) and tanks (%d)", ngases, ntanks);
+ report_error("Warning: different number of gases (%d) and cylinders (%d)", ngases, ntanks);
} else if (ntanks > ngases) {
shown_warning = true;
- report_error("Warning: smaller number of gases (%d) than tanks (%d). Assuming air.", ngases, ntanks);
+ report_error("Warning: smaller number of gases (%d) than cylinders (%d). Assuming air.", ngases, ntanks);
}
}
#endif