summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-12 23:16:54 +0530
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-12 13:58:16 -0700
commit0011d43711a30a6bb0a2fa534b098936629f564b (patch)
treecad50014401aea466194262b9fc54a677a3c799a /parse-xml.c
parentc91ecb62af8f90e271e07266058d877e5ed45bdc (diff)
downloadsubsurface-0011d43711a30a6bb0a2fa534b098936629f564b.tar.gz
Divinglog import: ascent warning 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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 2750b3f25..1aaf8eac4 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2893,6 +2893,14 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
strcpy(cur_event.name, "rbt");
event_end();
}
+
+ /* Ascent warning */
+ if (ptr[7] - '0') {
+ event_start();
+ cur_event.time.seconds = sinterval * i;
+ strcpy(cur_event.name, "ascent");
+ event_end();
+ }
ptr += 12;
}