summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-01-23 18:15:09 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-24 07:09:05 +1200
commit9c4a4cb9f8e2bf1678e5f70126bcfe1e524bc478 (patch)
treec08cdcb25cffb2fdc448ddb6b9569f2dc878ccb9 /parse-xml.c
parentf45602f4f885bfde1f4874b94e4678ca5145b7d2 (diff)
downloadsubsurface-9c4a4cb9f8e2bf1678e5f70126bcfe1e524bc478.tar.gz
Different log record types added for DLF import
The events we decode from DLF file are divided between log record types (1 through 5). Thus we need to parse the events from all of these record types. 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, 9 insertions, 2 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 820953fab..98ffab32f 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2622,8 +2622,11 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
//ptr[14] and ptr[15] is unknown, always zero in checked files
sample_end();
break;
- case 1:
- /* dive event */
+ case 1: /* dive event */
+ case 2: /* automatic parameter change */
+ case 3: /* diver error */
+ case 4: /* internal error */
+ case 5: /* device activity log */
event_start();
cur_event.time.seconds = time;
switch (ptr[4]) {
@@ -2805,7 +2808,11 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
}
event_end();
break;
+ case 6:
+ /* device configuration */
+ break;
case 7:
+ /* measure record */
/* Po2 sample? Solenoid inject? */
//fprintf(stderr, "%02X %02X%02X %02X%02X\n", ptr[5], ptr[6], ptr[7], ptr[8], ptr[9]);
break;