Mercurial > public > ostc4
diff Discovery/Src/t7.c @ 446:f1257a32f2d4 minor_improvments
Introduced configuration header for variant managment:
At the moment several defines are distributed across the code allowing special SW builds (e.g. logging simulated dives). To make these options more transparent and easier to configurate a separate header has been added. With this header an new option for an optical pressure sensor was introduced.
author | ideenmodellierer |
---|---|
date | Thu, 05 Mar 2020 22:31:50 +0100 |
parents | adb18fe92737 |
children | f7c66593ab82 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Thu Mar 05 22:27:55 2020 +0100 +++ b/Discovery/Src/t7.c Thu Mar 05 22:31:50 2020 +0100 @@ -2652,11 +2652,13 @@ headerText[2] = TXT_ActualGradient; snprintf(text,TEXTSIZE,"\020%.0f\016\016%%\017",100 * pDecoinfoStandard->super_saturation); break; +#ifdef ENABLE_BOTTLE_SENSOR case LCC_BottleBar: headerText[2] = TXT_AtemGasVorrat; tinyHeaderFont = 1; snprintf(text,TEXTSIZE,"%d\016\016\017", stateUsed->lifeData.bottle_bar[1]); break; +#endif } headerText[3] = 0; @@ -2666,7 +2668,10 @@ GFX_write_string(&FontT42,&t7l3,headerText,0); t7_colorscheme_mod(text); - if(selection_custom_field != LCC_BottleBar) +#ifndef ENABLE_BOTTLE_SENSOR + GFX_write_string(&FontT105,&t7l3,text,line); +#else + if(selection_custom_field != LCC_BottleBar) /* a changing color set is used for bar display */ { GFX_write_string(&FontT105,&t7l3,text,line); } @@ -2689,6 +2694,7 @@ GFX_write_string_color(&FontT105,&t7l3,text,line,agedColor); } +#endif } /* Private functions ---------------------------------------------------------*/