From 6f3ef2a964299c5e43d3b283636266b80e3c1f25 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 5 Jan 2015 22:59:17 +0100 Subject: DLF import: Restructure depth decoding Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse-xml.c b/parse-xml.c index 33b4c3ee2..14ece90d9 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -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: -- cgit v1.2.3-70-g09d2