From 67de8f3a4960941f7de7b49bac4a93e4448fdd63 Mon Sep 17 00:00:00 2001 From: Robert Helling Date: Fri, 3 Feb 2017 07:32:27 -0800 Subject: 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 Signed-off-by: Dirk Hohndel --- core/libdivecomputer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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 -- cgit v1.2.3-70-g09d2