summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-15 08:15:25 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-15 08:52:55 -0700
commited4e71a817e370f397d5f4b7dc613f01b5564456 (patch)
tree43777d83a00faef64e4c238cb8f5688dab1dd52e /parse-xml.c
parentfa76733d255b32ecaabc600c8d582b8baa9d27c2 (diff)
downloadsubsurface-ed4e71a817e370f397d5f4b7dc613f01b5564456.tar.gz
Fix uemis depth calculation in the uemis XML importer
Signed-off-by: Dirk Hohndel <dirk@hohndel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index cecfbb304..82149cf8a 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -422,7 +422,7 @@ static void water_pressure(char *buffer, void *_depth)
* atm to cm. Why not mm? The precision just isn't
* there.
*/
- cm = 100 * (atm - 1) + 0.5;
+ cm = 100 * atm + 0.5;
if (cm > 0) {
depth->mm = 10 * (long)cm;
break;