From 43c1c0a1d1fe111520a090a9e27414f8ef4754ac Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 27 Dec 2017 16:50:32 +0200 Subject: Check different sensors on divinglog import Signed-off-by: Miika Turkia --- core/import-divinglog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/import-divinglog.c b/core/import-divinglog.c index e9626ca56..02145a631 100644 --- a/core/import-divinglog.c +++ b/core/import-divinglog.c @@ -217,7 +217,7 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu * Count the number of o2 sensors */ - if (!cur_dive->dc.no_o2sensors && (cur_sample->o2sensor[0].mbar || cur_sample->o2sensor[0].mbar || cur_sample->o2sensor[0].mbar)) { + if (!cur_dive->dc.no_o2sensors && (cur_sample->o2sensor[0].mbar || cur_sample->o2sensor[1].mbar || cur_sample->o2sensor[2].mbar)) { cur_dive->dc.no_o2sensors = cur_sample->o2sensor[0].mbar ? 1 : 0 + cur_sample->o2sensor[1].mbar ? 1 : 0 + cur_sample->o2sensor[2].mbar ? 1 : 0; -- cgit v1.2.3-70-g09d2