mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
DLF import: Restructure depth decoding
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4b98d17800
commit
6f3ef2a964
1 changed files with 1 additions and 1 deletions
|
@ -2590,7 +2590,7 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
|
|||
/* Regular sample */
|
||||
sample_start();
|
||||
cur_sample->time.seconds = time;
|
||||
cur_sample->depth.mm = ((ptr[4] & 0xff) + ((ptr[5] << 8) & 0xff00)) * 10;
|
||||
cur_sample->depth.mm = ((ptr[5] << 8) + ptr[4]) * 10;
|
||||
sample_end();
|
||||
break;
|
||||
case 1:
|
||||
|
|
Loading…
Add table
Reference in a new issue