[PATCH] Import surface event from Suunto DB

Miika Turkia miika.turkia at gmail.com
Tue May 19 09:22:36 PDT 2015


This is actually relevant information when someone surfaces
accidentally, thus we should not ignore it.

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 parse-xml.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/parse-xml.c b/parse-xml.c
index 6894ec0..c5ed21a 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2053,8 +2053,9 @@ extern int dm4_events(void *handle, int columns, char **data, char **column)
 			break;
 		case 257:
 			/* 257 Dive active */
-			/* This seems to be given after surface
-				 * when descending again. Ignoring it. */
+			/* This seems to be given after surface when
+			 * descending again. */
+			strcpy(cur_event.name, "surface");
 			break;
 		case 258:
 			/* 258 Bookmark */
-- 
2.1.4



More information about the subsurface mailing list