comparison Discovery/Src/t7.c @ 748:be25ab2d902c

Added display of co2 ppm values: Updated output functions for CO2 visualization and added the CO2 measurement to the lower left corner selection field. The sensor provides the value as factor 10 of ppm that's why the data type had to be changed to 32bit if ppm should be available without scaling every time. Cleanup sensor dialog: The HUD battery was displayed by default and some sensor combinations were not displayed correctly. The refresh function was updated to fix these issues.
author Ideenmodellierer
date Sun, 05 Mar 2023 22:14:53 +0100
parents 6871d4b586ff
children 9334bdc30d60
comparison
equal deleted inserted replaced
747:df0d43da1614 748:be25ab2d902c
3020 else 3020 else
3021 GFX_write_string(&FontT42,&t7l3,headerText,0); 3021 GFX_write_string(&FontT42,&t7l3,headerText,0);
3022 3022
3023 t7_colorscheme_mod(text); 3023 t7_colorscheme_mod(text);
3024 #ifndef ENABLE_BOTTLE_SENSOR 3024 #ifndef ENABLE_BOTTLE_SENSOR
3025 GFX_write_string(&FontT105,&t7l3,text,line); 3025 #ifdef ENABLE_CO2_SUPPORT
3026 if(selection_custom_field != LCC_CO2)
3027 {
3028 GFX_write_string(&FontT105,&t7l3,text,line);
3029 }
3030 else
3031 {
3032 GFX_write_string(&FontT48,&t7l3,text,line);
3033 }
3034 #else
3035 GFX_write_string(&FontT105,&t7l3,text,line);
3036 #endif
3026 #else 3037 #else
3027 if(selection_custom_field != LCC_BottleBar) /* a changing color set is used for bar display */ 3038 if(selection_custom_field != LCC_BottleBar) /* a changing color set is used for bar display */
3028 { 3039 {
3029 GFX_write_string(&FontT105,&t7l3,text,line); 3040 GFX_write_string(&FontT105,&t7l3,text,line);
3030 } 3041 }