comparison Discovery/Src/t7.c @ 749:9334bdc30d60

Added enum for Co2 display
author Ideenmodellierer
date Mon, 13 Mar 2023 22:18:28 +0100
parents be25ab2d902c
children 6de83d8205a0
comparison
equal deleted inserted replaced
748:be25ab2d902c 749:9334bdc30d60
2926 case LCC_BottleBar: 2926 case LCC_BottleBar:
2927 headerText[2] = TXT_AtemGasVorrat; 2927 headerText[2] = TXT_AtemGasVorrat;
2928 tinyHeaderFont = 1; 2928 tinyHeaderFont = 1;
2929 snprintf(text,TEXTSIZE,"%d\016\016\017", stateUsed->lifeData.bottle_bar[stateUsed->lifeData.actualGas.GasIdInSettings]); 2929 snprintf(text,TEXTSIZE,"%d\016\016\017", stateUsed->lifeData.bottle_bar[stateUsed->lifeData.actualGas.GasIdInSettings]);
2930 break; 2930 break;
2931 #endif
2932 #ifdef ENABLE_CO2_SUPPORT
2933 case LCC_CO2:
2934 headerText[2] = TXT_CO2Sensor;
2935 if(stateUsed->lifeData.CO2_data.CO2_ppm < CO2_WARNING_LEVEL_PPM)
2936 {
2937 text[textpointer++] = '\020';
2938 }
2939 else if(stateUsed->lifeData.CO2_data.CO2_ppm < CO2_ALARM_LEVEL_PPM)
2940 {
2941 text[textpointer++] = '\024'; /* yellow */
2942 }
2943 else
2944 {
2945 text[textpointer++] = '\025'; /* red */
2946 }
2947 snprintf(&text[textpointer],TEXTSIZE,"\%5ldppm", stateUsed->lifeData.CO2_data.CO2_ppm);
2931 #endif 2948 #endif
2932 case LLC_Compass: 2949 case LLC_Compass:
2933 headerText[2] = TXT_2BYTE; 2950 headerText[2] = TXT_2BYTE;
2934 headerText[3] = TXT2BYTE_Compass; 2951 headerText[3] = TXT2BYTE_Compass;
2935 tinyHeaderFont = 1; 2952 tinyHeaderFont = 1;