X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=uemis.c;fp=uemis.c;h=86b186043486a001b56154b4064e2bdcff4516f7;hb=485b02937d8ca1f9a9043c89e74a3d2f15d6426b;hp=f55407b4bc254ab0ee9a641b2b6075d996ce983e;hpb=56980579514f2900e43441b483e435b3e3235266;p=ext%2Fsubsurface.git diff --git a/uemis.c b/uemis.c index f55407b..86b1860 100644 --- a/uemis.c +++ b/uemis.c @@ -86,7 +86,7 @@ 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); }