comparison Discovery/Src/t7.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 9bb9a52d6ae5
children f52bc70e380f
comparison
equal deleted inserted replaced
581:011d8f9f5ddb 582:64bf41faab83
1592 } 1592 }
1593 i++; 1593 i++;
1594 } 1594 }
1595 1595
1596 if (((view == CVIEW_sensors) || (view == CVIEW_sensors_mV)) && 1596 if (((view == CVIEW_sensors) || (view == CVIEW_sensors_mV)) &&
1597 ((stateUsed->diveSettings.ppo2sensors_deactivated == 0x07) || (stateUsed->diveSettings.ccrOption == 0))) 1597 ((stateUsed->diveSettings.ppo2sensors_deactivated == 0x07) || (stateUsed->diveSettings.ccrOption == 0) || (stateUsed->warnings.fallback)))
1598 { 1598 {
1599 cv_disabled = 1; 1599 cv_disabled = 1;
1600 } 1600 }
1601 return cv_disabled; 1601 return cv_disabled;
1602 } 1602 }
1706 { 1706 {
1707 if(t7_customview_disabled(selection_customview)) 1707 if(t7_customview_disabled(selection_customview))
1708 { 1708 {
1709 t7_change_customview(ACTION_BUTTON_ENTER); 1709 t7_change_customview(ACTION_BUTTON_ENTER);
1710 } 1710 }
1711 last_customview = selection_customview;
1711 } 1712 }
1712 switch(selection_customview) 1713 switch(selection_customview)
1713 { 1714 {
1714 case CVIEW_noneOrDebug: 1715 case CVIEW_noneOrDebug:
1715 if(settingsGetPointer()->showDebugInfo) 1716 if(settingsGetPointer()->showDebugInfo)