mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
ac6e84c4fd
commit
ea7f861d3d
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue