diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-01-05 22:59:17 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-05 14:07:38 -0800 |
commit | 6f3ef2a964299c5e43d3b283636266b80e3c1f25 (patch) | |
tree | f52eec7250ae59e1bd5cb8c2636a7f9ee9d17427 /parse-xml.c | |
parent | 4b98d17800e95f78b154694117ab0c24d21ef148 (diff) | |
download | subsurface-6f3ef2a964299c5e43d3b283636266b80e3c1f25.tar.gz |
DLF import: Restructure depth decoding
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |