From 7cdf55ffcc8d0525657dd0780f7436284e9b72aa Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 19 Sep 2014 09:36:29 +0200 Subject: [PATCH] Set O2 partial pressure for CCR dives correctly Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- dive.c | 1 + 1 file changed, 1 insertion(+) 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; }