From 485b02937d8ca1f9a9043c89e74a3d2f15d6426b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 1 Nov 2011 21:12:21 -0700 Subject: Even more places with pressure and volume conversions Amazing at how many spots we are re-implementing the wheel. Signed-off-by: Dirk Hohndel --- uemis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uemis.c') 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); } -- cgit v1.2.3-70-g09d2