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
|
@ -143,7 +143,7 @@ void TabDiveInformation::updateProfile()
|
|||
ui->diveTimeText->setText(get_dive_duration_string(current_dive->duration.seconds, tr("h"), tr("min"), tr("sec"),
|
||||
" ", current_dive->dc.divemode == FREEDIVE));
|
||||
|
||||
ui->sacText->setText(current_dive->cylinders.nr > 0 && mean[0] ? SACs : QString());
|
||||
ui->sacText->setText(current_dive->cylinders.nr > 0 && mean[0] && current_dive->dc.divemode != CCR ? SACs : QString());
|
||||
|
||||
if (current_dive->surface_pressure.mbar == 0) {
|
||||
ui->atmPressVal->clear(); // If no atm pressure for dive then clear text box
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue