summaryrefslogtreecommitdiffstats
path: root/core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Seppo Takalo <seppo.takalo@iki.fi>2017-09-13 17:46:41 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-13 07:57:45 -0700
commit850917d41d7745f6e9d16bc856af4a91ca0518e2 (patch)
treea09717442338ded541c0fcd56388d176db9d1445 /core/parse-xml.c
parentba854a8cc5ed51e26144f272e2fa5235f5d00119 (diff)
downloadsubsurface-850917d41d7745f6e9d16bc856af4a91ca0518e2.tar.gz
Don't assume CCR mode when importing from Shearwater
Logic was assuming CCR mode if field "averagePPO2" was present. Signed-off-by: Seppo Takalo <seppo.takalo@iki.fi>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r--core/parse-xml.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index fa1fc4fdb..b2a06bb21 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -2746,7 +2746,6 @@ extern int shearwater_profile_sample(void *handle, int columns, char **data, cha
cur_sample->temperature.mkelvin = metric ? C_to_mkelvin(atof(data[2])) : F_to_mkelvin(atof(data[2]));
if (data[3]) {
cur_sample->setpoint.mbar = lrint(atof(data[3]) * 1000);
- cur_dive->dc.divemode = CCR;
}
if (data[4])
cur_sample->ndl.seconds = atoi(data[4]) * 60;
@@ -2780,7 +2779,6 @@ extern int shearwater_ai_profile_sample(void *handle, int columns, char **data,
cur_sample->temperature.mkelvin = metric ? C_to_mkelvin(atof(data[2])) : F_to_mkelvin(atof(data[2]));
if (data[3]) {
cur_sample->setpoint.mbar = lrint(atof(data[3]) * 1000);
- cur_dive->dc.divemode = CCR;
}
if (data[4])
cur_sample->ndl.seconds = atoi(data[4]) * 60;