comparison Discovery/Src/tHome.c @ 505:06b21f1e47a5

Removed second big font profile The nex big font views have been introduced using an additional profile because an individual selection was not possible. By introducing the selection dialog for big font data views this additional profile is no longer needed.
author Ideenmodellierer
date Sun, 30 Aug 2020 17:14:31 +0200
parents 0d2449e9d659
children bd66f4910993
comparison
equal deleted inserted replaced
504:8428195a4967 505:06b21f1e47a5
56 static uint16_t display_toogle_count; 56 static uint16_t display_toogle_count;
57 static uint16_t tHome_tick_count_cview; 57 static uint16_t tHome_tick_count_cview;
58 static uint16_t tHome_tick_count_field; 58 static uint16_t tHome_tick_count_field;
59 59
60 const uint8_t cv_changelist[] = {CVIEW_Compass, CVIEW_SummaryOfLeftCorner, CVIEW_Tissues, CVIEW_Profile, CVIEW_EADTime, CVIEW_Gaslist, CVIEW_noneOrDebug, CVIEW_Decolist,CVIEW_sensors,CVIEW_sensors_mV, CVIEW_END}; 60 const uint8_t cv_changelist[] = {CVIEW_Compass, CVIEW_SummaryOfLeftCorner, CVIEW_Tissues, CVIEW_Profile, CVIEW_EADTime, CVIEW_Gaslist, CVIEW_noneOrDebug, CVIEW_Decolist,CVIEW_sensors,CVIEW_sensors_mV, CVIEW_END};
61 const uint8_t cv_changelist_BS[] = {CVIEW_T3_Decostop, CVIEW_sensors, CVIEW_Compass, CVIEW_T3_MaxDepth,CVIEW_T3_StopWatch, CVIEW_T3_TTS, CVIEW_T3_ppO2andGas, CVIEW_noneOrDebug, CVIEW_T3_END}; 61 const uint8_t cv_changelist_BS[] = {CVIEW_T3_Decostop, CVIEW_sensors, CVIEW_Compass, CVIEW_T3_MaxDepth,CVIEW_T3_StopWatch, CVIEW_T3_TTS, CVIEW_T3_ppO2andGas, CVIEW_noneOrDebug, CVIEW_T3_Navigation, CVIEW_T3_DepthData, CVIEW_T3_END};
62
63 #ifdef ENABLE_BIGFONT_VX
64 const uint8_t cv_changelist_BSV2[] = {CVIEW_T3_Decostop, CVIEW_sensors, CVIEW_T3_Navigation, CVIEW_T3_DepthData, CVIEW_T3_TTS, CVIEW_T3_ppO2andGas, CVIEW_noneOrDebug, CVIEW_T3_END};
65 #endif
66 62
67 /* Private function prototypes -----------------------------------------------*/ 63 /* Private function prototypes -----------------------------------------------*/
68 64
69 /* Exported functions --------------------------------------------------------*/ 65 /* Exported functions --------------------------------------------------------*/
70 66
361 else 357 else
362 if(settingsGetPointer()->design == 6) 358 if(settingsGetPointer()->design == 6)
363 t6_change_customview(action); 359 t6_change_customview(action);
364 } 360 }
365 361
362 uint8_t tHome_getNumberOfAvailableCVs(const uint8_t* pcv_list)
363 {
364 uint8_t cnt = 0;
365
366 while((pcv_list[cnt] != CVIEW_END) && (pcv_list[cnt] != CVIEW_T3_END))
367 {
368 cnt++;
369 if (cnt > 100) /* just in case an invalid list has been provided... */
370 {
371 break;
372 }
373 }
374 cnt--; /* do not count end token */
375 return cnt;
376 }
366 377
367 void tHome_tick(void) 378 void tHome_tick(void)
368 { 379 {
369 uint16_t field = settingsGetPointer()->tX_userselectedLeftLowerCornerTimeout; 380 uint16_t field = settingsGetPointer()->tX_userselectedLeftLowerCornerTimeout;
370 uint16_t cview = settingsGetPointer()->tX_customViewTimeout; 381 uint16_t cview = settingsGetPointer()->tX_customViewTimeout;