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
@ -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…
x
Reference in New Issue
Block a user