X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=uemis.c;h=28302b1c0c75ae955d9ae29baf91fcf74056d676;hb=4dfbb7394f9aea8b79d46eb4dbb8082898811512;hp=c7b16766bde611c1d4965d37214f1bf17c49931b;hpb=c39d1c61563e6a8b458432c91b057eac51dcabab;p=ext%2Fsubsurface.git diff --git a/uemis.c b/uemis.c index c7b1676..28302b1 100644 --- a/uemis.c +++ b/uemis.c @@ -14,7 +14,6 @@ #include #define __USE_XOPEN #include -#include #include "dive.h" #include "uemis.h" @@ -87,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; } /*