[PATCH 1/6] DLF import: Restructure depth decoding
Anton Lundin
glance at acc.umu.se
Mon Jan 5 13:59:17 PST 2015
Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
parse-xml.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/parse-xml.c b/parse-xml.c
index 33b4c3e..14ece90 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:
--
2.1.0
More information about the subsurface
mailing list