mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Adding more Suunto events
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
265128451f
commit
6c0a6af4aa
1 changed files with 27 additions and 0 deletions
27
parse-xml.c
27
parse-xml.c
|
@ -2011,9 +2011,19 @@ extern int dm4_events(void *handle, int columns, char **data, char **column)
|
||||||
strcpy(cur_event.name, "deco");
|
strcpy(cur_event.name, "deco");
|
||||||
break;
|
break;
|
||||||
case 22:
|
case 22:
|
||||||
|
case 32:
|
||||||
/* 22 Mandatory safety stop violation */
|
/* 22 Mandatory safety stop violation */
|
||||||
|
/* 32 Deep stop violation */
|
||||||
strcpy(cur_event.name, "violation");
|
strcpy(cur_event.name, "violation");
|
||||||
break;
|
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:
|
case 257:
|
||||||
/* 257 Dive active */
|
/* 257 Dive active */
|
||||||
/* This seems to be given after surface
|
/* 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");
|
strcpy(cur_event.name, "bookmark");
|
||||||
}
|
}
|
||||||
break;
|
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:
|
default:
|
||||||
strcpy(cur_event.name, "unknown");
|
strcpy(cur_event.name, "unknown");
|
||||||
cur_event.value = atoi(data[2]);
|
cur_event.value = atoi(data[2]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue