summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-12 23:16:55 +0530
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-12 13:58:17 -0700
commit5bc4f974c585ae59eb7bb3d07f81591e1136ca9d (patch)
treeff87f99c15704bff04a48342154c61c74c7a9b00 /parse-xml.c
parent0011d43711a30a6bb0a2fa534b098936629f564b (diff)
downloadsubsurface-5bc4f974c585ae59eb7bb3d07f81591e1136ca9d.tar.gz
Divinglog import: deco stop ignored event 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 1aaf8eac4..c110481d7 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2901,6 +2901,14 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
strcpy(cur_event.name, "ascent");
event_end();
}
+
+ /* Deco stop ignored */
+ if (ptr[8] - '0') {
+ event_start();
+ cur_event.time.seconds = sinterval * i;
+ strcpy(cur_event.name, "violation");
+ event_end();
+ }
ptr += 12;
}