Mercurial > public > ostc4
comparison Discovery/Src/check_warning.c @ 582:64bf41faab83
Show Fallback if no valid sensor value is available:
In previous version fallback was shown when communication to HUD was lost. Now it will be displayed in case no sensor value ist judged as valid. In case of a fallback event ppo2 warnings as well as the data readings are no longer displayed.
author | Ideenmodellierer |
---|---|
date | Sat, 12 Dec 2020 20:52:58 +0100 |
parents | d97f0e395058 |
children | 7c73f066cd16 |
comparison
equal
deleted
inserted
replaced
581:011d8f9f5ddb | 582:64bf41faab83 |
---|---|
131 } | 131 } |
132 | 132 |
133 | 133 |
134 static int8_t check_ppO2(SDiveState * pDiveState) | 134 static int8_t check_ppO2(SDiveState * pDiveState) |
135 { | 135 { |
136 if(pDiveState->mode != MODE_DIVE) | 136 if((pDiveState->mode != MODE_DIVE) || (pDiveState->warnings.fallback)) |
137 { | 137 { |
138 pDiveState->warnings.ppO2Low = 0; | 138 pDiveState->warnings.ppO2Low = 0; |
139 pDiveState->warnings.ppO2High = 0; | 139 pDiveState->warnings.ppO2High = 0; |
140 return 0; | 140 return 0; |
141 } | 141 } |