summaryrefslogtreecommitdiffstats
path: root/core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-05-27 22:50:57 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-28 14:22:51 -0700
commit1e5fe4f3fe24adf483425654ac9eeb1327747a96 (patch)
treed8cf3ebba689acba847f5d943d3540aef79e776b /core/parse-xml.c
parent1e607ae98d2f57ebb8dab27ada29187d9bd2dffb (diff)
downloadsubsurface-1e5fe4f3fe24adf483425654ac9eeb1327747a96.tar.gz
Use serial as device ID on Shearwater import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r--core/parse-xml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index 746d4ce16..5eccbb9a7 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -2724,7 +2724,8 @@ extern int shearwater_dive(void *param, int columns, char **data, char **column)
if (data[10])
utf8_string(data[10], &cur_settings.dc.model);
- cur_settings.dc.deviceid = 0xffffffff;
+ cur_settings.dc.deviceid = atoi(data[9]);
+
dc_settings_end();
settings_end();