diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-01-05 22:59:21 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-05 14:08:55 -0800 |
commit | ea7f861d3d00c3c3331c2c11e99493756a311bd2 (patch) | |
tree | 0741453937a096f5777052205fd0f8a1558fb841 /parse-xml.c | |
parent | ac6e84c4fd8e7cdccdb75cd978e6b3fa4f78d3c9 (diff) | |
download | subsurface-ea7f861d3d00c3c3331c2c11e99493756a311bd2.tar.gz |
DLF import: Decode and import ceiling information
This imports the ceiling information as stopdepth, our way of showing a
ceiling.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c index 77a62cca4..5e83592b6 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -2604,6 +2604,7 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size) cur_sample->tts.seconds = ((ptr[10] & 0x0F) << 4) + ptr[9] * 20; cur_sample->temperature.mkelvin = (((ptr[11] & 0x0F) << 4) + (ptr[10] >> 4)) * 100 + ZERO_C_IN_MKELVIN; // ptr[11] & 0xF0 is unknown, and always 0xC in all checked files + cur_sample->stopdepth.mm = ((ptr[13] << 8) + ptr[12]) * 10; sample_end(); break; case 1: |