comparison Discovery/Src/tHome.c @ 836:8d6c35655d4d Evo_2_23

Bugfix BF temperatur display and cv switching: The temperatur view was not available in the BF selection dialog and has been added. Because the CV_END and CV_T3_END markers are defined in two independend lists it could happen that some BF views were not displayed. This problem has been solved by considering the source array which is handed over to the switching function.
author ideenmodellierer
date Wed, 27 Dec 2023 19:24:44 +0100
parents c4ee952b9425
children aed39d19269c
comparison
equal deleted inserted replaced
835:717b460294cd 836:8d6c35655d4d
63 const uint8_t cv_changelist_BS[] = {CVIEW_T3_Decostop, CVIEW_sensors, CVIEW_Compass, CVIEW_T3_MaxDepth,CVIEW_T3_StopWatch, CVIEW_T3_TTS, CVIEW_T3_GasList, CVIEW_T3_ppO2andGas, CVIEW_noneOrDebug, 63 const uint8_t cv_changelist_BS[] = {CVIEW_T3_Decostop, CVIEW_sensors, CVIEW_Compass, CVIEW_T3_MaxDepth,CVIEW_T3_StopWatch, CVIEW_T3_TTS, CVIEW_T3_GasList, CVIEW_T3_ppO2andGas, CVIEW_noneOrDebug,
64 CVIEW_T3_Navigation, CVIEW_T3_DepthData, CVIEW_T3_DecoTTS, 64 CVIEW_T3_Navigation, CVIEW_T3_DepthData, CVIEW_T3_DecoTTS,
65 #ifdef ENABLE_T3_PROFILE_VIEW 65 #ifdef ENABLE_T3_PROFILE_VIEW
66 CVIEW_T3_Profile, 66 CVIEW_T3_Profile,
67 #endif 67 #endif
68 CVIEW_T3_Temperature,
68 CVIEW_T3_END}; 69 CVIEW_T3_END};
69 70
70 /* Private function prototypes -----------------------------------------------*/ 71 /* Private function prototypes -----------------------------------------------*/
71 72
72 #define AUTORETURN_O2SENS (200u) /* return to sensor view after 20 seconds in case sensor is connected */ 73 #define AUTORETURN_O2SENS (200u) /* return to sensor view after 20 seconds in case sensor is connected */
76 77
77 void set_globalState_tHome(void) 78 void set_globalState_tHome(void)
78 { 79 {
79 if(stateUsed->mode == MODE_DIVE) 80 if(stateUsed->mode == MODE_DIVE)
80 { 81 {
81 if(settingsGetPointer()->extraDisplay == EXTRADISPLAY_BFACTIVE)
82 {
83 settingsGetPointer()->design = 3;
84 }
85 set_globalState(StD); 82 set_globalState(StD);
86 } 83 }
87 else 84 else
88 set_globalState(StS); 85 set_globalState(StS);
89 86