Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Discovery/Src/tHome.c Mon Aug 24 19:59:28 2020 +0200 +++ b/Discovery/Src/tHome.c Sun Aug 30 17:14:31 2020 +0200 @@ -58,11 +58,7 @@ static uint16_t tHome_tick_count_field; 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}; -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}; - -#ifdef ENABLE_BIGFONT_VX -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}; -#endif +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}; /* Private function prototypes -----------------------------------------------*/ @@ -363,6 +359,21 @@ t6_change_customview(action); } +uint8_t tHome_getNumberOfAvailableCVs(const uint8_t* pcv_list) +{ + uint8_t cnt = 0; + + while((pcv_list[cnt] != CVIEW_END) && (pcv_list[cnt] != CVIEW_T3_END)) + { + cnt++; + if (cnt > 100) /* just in case an invalid list has been provided... */ + { + break; + } + } + cnt--; /* do not count end token */ + return cnt; +} void tHome_tick(void) {