X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=uemis.c;h=28302b1c0c75ae955d9ae29baf91fcf74056d676;hb=53ecd2025d00e844fbfb84b5765d975e1e8942be;hp=f55407b4bc254ab0ee9a641b2b6075d996ce983e;hpb=3615675a626aab8f49cfcc9205328bcd9cf6cb34;p=ext%2Fsubsurface.git diff --git a/uemis.c b/uemis.c index f55407b..28302b1 100644 --- a/uemis.c +++ b/uemis.c @@ -86,9 +86,9 @@ static int pressure_to_depth(uint16_t value) { double atm, cm; - atm = (value / 100.0) / 1.01325; + atm = bar_to_atm(value / 100.0); cm = 100 * atm + 0.5; - return( (cm > 0) ? 10 * (long)cm : 0); + return (cm > 0) ? 10 * (long)cm : 0; } /*