diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-09-19 09:36:29 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-09-19 21:39:11 -0700 |
commit | 7cdf55ffcc8d0525657dd0780f7436284e9b72aa (patch) | |
tree | 3eb3fb65b4970e2e9221094f0f44e9d06bb641c7 | |
parent | 4891b002243bd94da9531ba66c04873168bdc138 (diff) | |
download | subsurface-7cdf55ffcc8d0525657dd0780f7436284e9b72aa.tar.gz |
Set O2 partial pressure for CCR dives correctly
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | dive.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1466,6 +1466,7 @@ extern void fill_pressures(struct gas_pressures *pressures, const double amb_pre pressures->he = 0; pressures->n2 = 0; } else { + pressures->o2 = po2; pressures->he = (amb_pressure - pressures->o2) * (double)get_he(mix) / (1000 - get_o2(mix)); pressures->n2 = amb_pressure - pressures->o2 - pressures->he; } |