summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-13 21:43:58 +0530
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-13 15:21:30 -0700
commit2ace3195f444f2b40a32ffb550511b02bea57162 (patch)
tree1726df4691fdf5277275eda394f374bab4434631 /parse-xml.c
parent2ec9002beb3b06f3fd9b59d9af55438c6ace2e14 (diff)
downloadsubsurface-2ace3195f444f2b40a32ffb550511b02bea57162.tar.gz
Divinglog import: stop (deco) time added
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 981037a4d..abb9c08e6 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2882,7 +2882,7 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
{
int sinterval = 0;
unsigned long i, len, lenprofile2 = 0;
- char *ptr, temp[4], pres[5], hbeat[4], stop[4], ndl[4];
+ char *ptr, temp[4], pres[5], hbeat[4], stop[4], stime[4], ndl[4];
short oldcyl = -1;
/* We do not have samples */
@@ -2953,6 +2953,9 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
memcpy(stop, &data[4][i * 9 + 6], 3);
cur_sample->stopdepth.mm = atoi(stop) * 1000;
+ memcpy(stime, &data[4][i * 9 + 3], 3);
+ cur_sample->stoptime.seconds = atoi(stime) * 60;
+
/*
* Following value is NDL when not in deco, and
* either 0 or TTS when in deco.