[PATCH] Adding more Suunto events

Miika Turkia miika.turkia at gmail.com
Tue Feb 17 12:28:27 PST 2015


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

diff --git a/parse-xml.c b/parse-xml.c
index b119701..3c5bfe0 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2011,9 +2011,19 @@ extern int dm4_events(void *handle, int columns, char **data, char **column)
 			strcpy(cur_event.name, "deco");
 			break;
 		case 22:
+		case 32:
 			/* 22 Mandatory safety stop violation */
+			/* 32 Deep stop violation */
 			strcpy(cur_event.name, "violation");
 			break;
+		case 30:
+			/* Tissue level warning */
+			strcpy(cur_event.name, "tissue warning");
+			break;
+		case 37:
+			/* Tank pressure alarm */
+			strcpy(cur_event.name, "tank pressure");
+			break;
 		case 257:
 			/* 257 Dive active */
 			/* This seems to be given after surface
@@ -2028,6 +2038,23 @@ extern int dm4_events(void *handle, int columns, char **data, char **column)
 				strcpy(cur_event.name, "bookmark");
 			}
 			break;
+		case 259:
+			/* Deep stop */
+			strcpy(cur_event.name, "Deep stop");
+			break;
+		case 260:
+			/* Deep stop */
+			strcpy(cur_event.name, "Deep stop cleared");
+			break;
+		case 266:
+			/* Mandatory safety stop activated */
+			strcpy(cur_event.name, "safety stop (mandatory)");
+			break;
+		case 267:
+			/* Mandatory safety stop deactivated */
+			/* DM5 shows this only on event list, not on the
+			 * profile so skipping as well for now */
+			break;
 		default:
 			strcpy(cur_event.name, "unknown");
 			cur_event.value = atoi(data[2]);
-- 
2.1.0



More information about the subsurface mailing list