mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
5698057951
commit
485b02937d
5 changed files with 16 additions and 16 deletions
2
uemis.c
2
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue