aboutsummaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-12 23:16:53 +0530
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-12 13:58:16 -0700
commitc91ecb62af8f90e271e07266058d877e5ed45bdc (patch)
tree02602127deac753000a6c30346e945602130de84 /parse-xml.c
parent495aab8f206e868a6dba6e8a661ec193217fbc62 (diff)
downloadsubsurface-c91ecb62af8f90e271e07266058d877e5ed45bdc.tar.gz
Divinglog import: RBT warning 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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index d651fa2b4..2750b3f25 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2885,6 +2885,17 @@ extern int divinglog_profile(void *handle, int columns, char **data, char **colu
sample_end();
}
+ for (i = 0, ptr = data[1]; i * 12 < len; ++i) {
+ /* Remaining bottom time warning */
+ if (ptr[6] - '0') {
+ event_start();
+ cur_event.time.seconds = sinterval * i;
+ strcpy(cur_event.name, "rbt");
+ event_end();
+ }
+ ptr += 12;
+ }
+
return 0;
}