[PATCH 10/17] Divinglog import: Deco stop ignored event added

Miika Turkia miika.turkia at gmail.com
Sun Jul 12 10:46:55 PDT 2015


Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
Do we have a better text for this one than violation?
---
 parse-xml.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/parse-xml.c b/parse-xml.c
index 1aaf8ea..c110481 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;
 	}
 
-- 
2.1.4



More information about the subsurface mailing list