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>
This commit is contained in:
Dirk Hohndel 2011-09-15 08:15:25 -07:00 committed by Linus Torvalds
parent fa76733d25
commit ed4e71a817

View file

@ -422,7 +422,7 @@ static void water_pressure(char *buffer, void *_depth)
* atm to cm. Why not mm? The precision just isn't * atm to cm. Why not mm? The precision just isn't
* there. * there.
*/ */
cm = 100 * (atm - 1) + 0.5; cm = 100 * atm + 0.5;
if (cm > 0) { if (cm > 0) {
depth->mm = 10 * (long)cm; depth->mm = 10 * (long)cm;
break; break;