diff 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
line wrap: on
line diff
--- a/Discovery/Src/check_warning.c	Sat Dec 12 19:18:57 2020 +0100
+++ b/Discovery/Src/check_warning.c	Sat Dec 12 20:52:58 2020 +0100
@@ -133,7 +133,7 @@
 
 static int8_t check_ppO2(SDiveState * pDiveState)
 {
-	if(pDiveState->mode != MODE_DIVE)
+	if((pDiveState->mode != MODE_DIVE) || (pDiveState->warnings.fallback))
 	{
 		pDiveState->warnings.ppO2Low = 0;
 		pDiveState->warnings.ppO2High = 0;