diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-07-23 08:54:08 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-24 10:03:07 +0900 |
commit | 0e9e1b6043db11f9f7a98ec7d91198235beaa36c (patch) | |
tree | 03f390db0dadd119c45e7381baa96c72ea9e60ae /core | |
parent | 27bb76e8340606d9fd6183befe68d2a04c2d1d23 (diff) | |
download | subsurface-0e9e1b6043db11f9f7a98ec7d91198235beaa36c.tar.gz |
Fix CCR detection on Divinglog import
Note that I have not been able to do a positive test for this due to
lack of CCR sample data. But at least OC dives are now categorized
correctly.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/parse-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index 5d5a8f8b9..65c3eee6b 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -3227,7 +3227,7 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu * the amount O2 sensors. */ - if (!cur_dive->dc.no_o2sensors) { + 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; |