summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-09-19 09:36:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-09-19 21:39:11 -0700
commit7cdf55ffcc8d0525657dd0780f7436284e9b72aa (patch)
tree3eb3fb65b4970e2e9221094f0f44e9d06bb641c7
parent4891b002243bd94da9531ba66c04873168bdc138 (diff)
downloadsubsurface-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.c b/dive.c
index 85f70e3b1..1efdedef4 100644
--- a/dive.c
+++ b/dive.c
@@ -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;
}