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:
Anton Lundin 2015-01-05 22:59:17 +01:00 committed by Dirk Hohndel
parent 4b98d17800
commit 6f3ef2a964

View file

@ -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: