Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 411:e908b894f107 | 412:b3ab85121e4d |
|---|---|
| 1678 CALC_INVALID | 1678 CALC_INVALID |
| 1679 } CALC_WHAT; | 1679 } CALC_WHAT; |
| 1680 | 1680 |
| 1681 static CALC_WHAT what = CALC_INVALID; | 1681 static CALC_WHAT what = CALC_INVALID; |
| 1682 static int counter = 0; | 1682 static int counter = 0; |
| 1683 if((stateUsed->mode != MODE_DIVE) || (stateUsed->diveSettings.diveMode == DIVEMODE_Apnea) || (decoLock != DECO_CALC_ready )) | 1683 if((stateUsed->mode != MODE_DIVE) || (stateUsed->diveSettings.diveMode == DIVEMODE_Apnea) || (stateUsed->diveSettings.diveMode == DIVEMODE_Gauge) || (decoLock != DECO_CALC_ready )) |
| 1684 return; | 1684 return; |
| 1685 | 1685 |
| 1686 decoLock = DECO_CALC_running; | 1686 decoLock = DECO_CALC_running; |
| 1687 | 1687 |
| 1688 if(stateDeco.diveSettings.deco_type.ub.standard == GF_MODE) | 1688 if(stateDeco.diveSettings.deco_type.ub.standard == GF_MODE) |
