summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-12-27 16:50:32 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-12-27 20:45:24 +0100
commit43c1c0a1d1fe111520a090a9e27414f8ef4754ac (patch)
tree291dc0d90c40984a54be5f2848ca494eef5944c6 /core
parent637210564a3ae22c7b3fb476a0334b61f43c95d1 (diff)
downloadsubsurface-43c1c0a1d1fe111520a090a9e27414f8ef4754ac.tar.gz
Check different sensors on divinglog import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/import-divinglog.c2
1 files changed, 1 insertions, 1 deletions
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;