mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't attempt to compute SAC for CCR dives
CCRs are different. It does not make sense to compute a depth dependent SAC. You could compute the rate of O2 consumption but even that is likely wrong (as O2 in the diluent would enter that as well), so simply don't attempt it. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
cfd6a1634f
commit
07745893e5
4 changed files with 8 additions and 3 deletions
|
|
@ -348,6 +348,10 @@ static double calculate_airuse(const struct dive *dive)
|
|||
int airuse = 0;
|
||||
int i;
|
||||
|
||||
// SAC for a CCR dive does not make sense.
|
||||
if (dive->dc.divemode == CCR)
|
||||
return 0.0;
|
||||
|
||||
for (i = 0; i < dive->cylinders.nr; i++) {
|
||||
pressure_t start, end;
|
||||
const cylinder_t *cyl = get_cylinder(dive, i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue