]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix uemis depth calculation in the uemis XML importer
authorDirk Hohndel <dirk@hohndel.org>
Thu, 15 Sep 2011 15:15:25 +0000 (08:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Sep 2011 15:52:55 +0000 (08:52 -0700)
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
parse-xml.c

index cecfbb30417b9a167371540e6f67fae36599c926..82149cf8aca5c7c76cf7b5bc5a6b012f1ea4d1ef 100644 (file)
@@ -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;