summaryrefslogtreecommitdiffstats
path: root/uemis.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-02 12:39:55 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-02 12:39:55 -0700
commit55352a051cfa7ac519e397cd3d18851e5050517b (patch)
tree8d42a09d66212b84f992c8d3ce6b8e341cdac94a /uemis.c
parente4bfb6597279ca3d9aa3678a617f5f0aef298278 (diff)
parent619ab9e828d4db7b0c4089018b09892c9d04ece9 (diff)
downloadsubsurface-55352a051cfa7ac519e397cd3d18851e5050517b.tar.gz
Merge branch 'add-info-stats-page' of git://github.com/dirkhh/subsurface
* 'add-info-stats-page' of git://github.com/dirkhh/subsurface: Add Info & Stats page to the notebook Even more places with pressure and volume conversions Further cleanup of pressure and volume conversions Use unit functions to get column headers, add unit function for pressure More consistency improvements Add new helper function to get temperature and unit
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);
}