mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
f45602f4f8
commit
9c4a4cb9f8
1 changed files with 9 additions and 2 deletions
11
parse-xml.c
11
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue