mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
4891b00224
commit
7cdf55ffcc
1 changed files with 1 additions and 0 deletions
1
dive.c
1
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue