Mercurial > public > ostc4
diff Discovery/Src/base.c @ 412:b3ab85121e4d Improment_NVM
Bugfix: Warnings displayed in Gauge Mode:
Decompression data was calculated while just gauge function was expected. Added expression to skip calculation like it is already implemented for apnoe mode
author | ideenmodellierer |
---|---|
date | Tue, 14 Jan 2020 21:08:45 +0100 |
parents | b11e50415982 |
children | b67327177159 |
line wrap: on
line diff
--- a/Discovery/Src/base.c Mon Jan 13 20:27:57 2020 +0100 +++ b/Discovery/Src/base.c Tue Jan 14 21:08:45 2020 +0100 @@ -1680,7 +1680,7 @@ static CALC_WHAT what = CALC_INVALID; static int counter = 0; - if((stateUsed->mode != MODE_DIVE) || (stateUsed->diveSettings.diveMode == DIVEMODE_Apnea) || (decoLock != DECO_CALC_ready )) + if((stateUsed->mode != MODE_DIVE) || (stateUsed->diveSettings.diveMode == DIVEMODE_Apnea) || (stateUsed->diveSettings.diveMode == DIVEMODE_Gauge) || (decoLock != DECO_CALC_ready )) return; decoLock = DECO_CALC_running;