summaryrefslogtreecommitdiffstats
path: root/uemis.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-01 21:12:21 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-01 21:34:06 -0700
commit485b02937d8ca1f9a9043c89e74a3d2f15d6426b (patch)
treeb589a44458c22dcbdeada5996eaf634cc064723e /uemis.c
parent56980579514f2900e43441b483e435b3e3235266 (diff)
downloadsubsurface-485b02937d8ca1f9a9043c89e74a3d2f15d6426b.tar.gz
Even more places with pressure and volume conversions
Amazing at how many spots we are re-implementing the wheel. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis.c')
-rw-r--r--uemis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis.c b/uemis.c
index f55407b4b..86b186043 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);
}