]> git.tdb.fi Git - ext/subsurface.git/blobdiff - uemis.c
Fix minor coding standard issues introduced by my last commit
[ext/subsurface.git] / uemis.c
diff --git a/uemis.c b/uemis.c
index c7b16766bde611c1d4965d37214f1bf17c49931b..86b186043486a001b56154b4064e2bdcff4516f7 100644 (file)
--- a/uemis.c
+++ b/uemis.c
@@ -14,7 +14,6 @@
 #include <stdlib.h>
 #define __USE_XOPEN
 #include <time.h>
-#include <regex.h>
 
 #include "dive.h"
 #include "uemis.h"
@@ -87,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);
 }