summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-07-24 06:41:10 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-24 13:08:04 +0900
commit1fe22a28ed7105c55f72c1e6d540896118d59eff (patch)
tree3d84c48557216f2e25caebf8c9b0ff396319b70f /core
parent685c59214df666a8a31c4a8a27191ce5003e514e (diff)
downloadsubsurface-1fe22a28ed7105c55f72c1e6d540896118d59eff.tar.gz
CCR is now detected from the log data
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/parse-xml.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index 92755bee2..e261d1273 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -3221,17 +3221,13 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
}
/*
- * My best guess is that if we have o2sensors, then it
- * is either CCR or PSCR dive. And the first time we
- * have O2 sensor readings, we can count them to get
- * the amount O2 sensors.
+ * 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)) {
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;
- cur_dive->dc.divemode = CCR;
}
ptr += 12;