diff options
author | Anton Lundin <glance@acc.umu.se> | 2018-09-10 13:31:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-12 14:14:14 -0700 |
commit | fa196fdab05025e494583342b5c2188074466b54 (patch) | |
tree | 9524635cb238a7f39fdc13d3d208b56699f3c4f8 | |
parent | 382fcc010ddaeb93ea15aac82470e0daabe5b0b8 (diff) | |
download | subsurface-fa196fdab05025e494583342b5c2188074466b54.tar.gz |
DLF import: Create separate solenoid open/close events
Signed-off-by: Anton Lundin <glance@acc.umu.se>
-rw-r--r-- | core/parse-xml.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |