From fa196fdab05025e494583342b5c2188074466b54 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 10 Sep 2018 13:31:14 +0200 Subject: DLF import: Create separate solenoid open/close events Signed-off-by: Anton Lundin --- core/parse-xml.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/parse-xml.c b/core/parse-xml.c index 409619ab0..0193de549 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -1949,7 +1949,9 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size, struct dive_table *tabl event_end(); break; case 25: - strcpy(cur_event.name, "CCR O2 solenoid opened/closed"); + // uint16_t solenoid_bitmap = (ptr[7] << 8) + (ptr[6] << 0); + // uint32_t time = (ptr[11] << 24) + (ptr[10] << 16) + (ptr[9] << 8) + (ptr[8] << 0); + snprintf(cur_event.name, MAX_EVENT_NAME, "CCR O2 solenoid %s", ptr[12] ? "opened": "closed"); break; case 26: strcpy(cur_event.name, "User mark"); -- cgit v1.2.3-70-g09d2