Mercurial > public > ostc4
changeset 840:7e714662b93f Evo_2_23
Development bugfix CO2 LLC:
In the previous version the CO2 LLC (lowerleftcorner) was displayed even if no CO2 sensor was present or active. In the new version it will only be displayed if an sensor is active.
author | Ideenmodellierer |
---|---|
date | Sun, 07 Jan 2024 21:21:58 +0100 |
parents | 061174d88af9 |
children | 70092f552f5a |
files | Discovery/Src/t7.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Sun Jan 07 21:20:15 2024 +0100 +++ b/Discovery/Src/t7.c Sun Jan 07 21:21:58 2024 +0100 @@ -3212,6 +3212,14 @@ selection_custom_field++; } #endif +#ifdef ENABLE_CO2_SUPPORT + if((selection_custom_field == LCC_CO2) && (settingsGetPointer()->co2_sensor_active == 0)) + { + selection_custom_field++; + } + +#endif + if(selection_custom_field >= LLC_END) { selection_custom_field = LLC_Empty;