diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-11-01 21:12:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-11-01 21:34:06 -0700 |
commit | 485b02937d8ca1f9a9043c89e74a3d2f15d6426b (patch) | |
tree | b589a44458c22dcbdeada5996eaf634cc064723e /uemis.c | |
parent | 56980579514f2900e43441b483e435b3e3235266 (diff) | |
download | subsurface-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |