comparison Discovery/Src/base.c @ 773:2c243233c999

Menu shortcut for bailout / return to circuit when diving in CCR mode (mikeller)
author heinrichsweikamp
date Wed, 10 May 2023 16:24:57 +0200
parents da8126d5ea9f
children 45b8f3c2acce
comparison
equal deleted inserted replaced
772:b7e43b28bee1 773:2c243233c999
1657 if((stateUsed->mode != MODE_DIVE) || (stateUsed->diveSettings.diveMode == DIVEMODE_Apnea) || (stateUsed->diveSettings.diveMode == DIVEMODE_Gauge) || (decoLock != DECO_CALC_ready )) 1657 if((stateUsed->mode != MODE_DIVE) || (stateUsed->diveSettings.diveMode == DIVEMODE_Apnea) || (stateUsed->diveSettings.diveMode == DIVEMODE_Gauge) || (decoLock != DECO_CALC_ready ))
1658 return; 1658 return;
1659 1659
1660 if((stateUsed->warnings.betterSetpoint) && (settingsGetPointer()->autoSetpoint) && (settingsGetPointer()->CCR_Mode == CCRMODE_FixedSetpoint)) 1660 if((stateUsed->warnings.betterSetpoint) && (settingsGetPointer()->autoSetpoint) && (settingsGetPointer()->CCR_Mode == CCRMODE_FixedSetpoint))
1661 { 1661 {
1662 openEdit_DiveSelectBetterSetpoint(); 1662 openEdit_DiveSelectBetterSetpoint(false);
1663 } 1663 }
1664 1664
1665 decoLock = DECO_CALC_running; 1665 decoLock = DECO_CALC_running;
1666 1666
1667 if(stateDeco.diveSettings.deco_type.ub.standard == GF_MODE) 1667 if(stateDeco.diveSettings.deco_type.ub.standard == GF_MODE)