# HG changeset patch # User Ideenmodellierer # Date 1672939547 -3600 # Node ID 47a9ba771119dad6b5eac907c9e583441ca40c43 # Parent fceae45b3a69003639754fd113661b9bdb052228 Show saturation in large font (T3) view: In case the DecoTTS custom view is active then the saturation will be displayed if the diver is close to the surface (TTS < 1 minute). diff -r fceae45b3a69 -r 47a9ba771119 Discovery/Src/t3.c --- a/Discovery/Src/t3.c Thu Jan 05 18:22:21 2023 +0100 +++ b/Discovery/Src/t3.c Thu Jan 05 18:25:47 2023 +0100 @@ -799,7 +799,7 @@ void t3_basics_refresh_apnoeRight(float depth, uint8_t tX_selection_customview, GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXc1, GFX_DrawCfgWindow* tXc2, uint8_t mode) { - char text[512]; + char text[30]; uint16_t textpointer = 0; // CVIEW_T3_Temperature @@ -908,7 +908,7 @@ { static uint8_t last_customview = CVIEW_END; - char text[512]; + char text[30]; uint16_t textpointer = 0; SSettings* pSettings; @@ -1238,14 +1238,25 @@ if(tX_selection_customview == CVIEW_T3_DecoTTS) /* add tts data on right side of screen */ { - snprintf(text,TEXTSIZE,"\002\032\f%c",TXT_TTS); - GFX_write_string(&FontT42,tXc1,text,0); if(pDecoinfo->output_time_to_surface_seconds) { - if(pDecoinfo->output_time_to_surface_seconds < 100 * 60) - snprintf(text,TEXTSIZE,"\020\003\002%i'",(pDecoinfo->output_time_to_surface_seconds + 59)/ 60); - else - snprintf(text,TEXTSIZE,"\020\003\002%ih",(pDecoinfo->output_time_to_surface_seconds + 59)/ 3600); + snprintf(text,TEXTSIZE,"\002\032\f%c",TXT_TTS); + GFX_write_string(&FontT42,tXc1,text,0); + if(pDecoinfo->output_time_to_surface_seconds) + { + if(pDecoinfo->output_time_to_surface_seconds < 100 * 60) + snprintf(text,TEXTSIZE,"\020\003\002%i'",(pDecoinfo->output_time_to_surface_seconds + 59)/ 60); + else + snprintf(text,TEXTSIZE,"\020\003\002%ih",(pDecoinfo->output_time_to_surface_seconds + 59)/ 3600); + t3_basics_colorscheme_mod(text); + GFX_write_string(&FontT105,tXc1,text,0); + } + } + else if(pDecoinfo->super_saturation > 0.1) + { + snprintf(text,TEXTSIZE,"\002\032\f%c",TXT_ActualGradient); + GFX_write_string(&FontT42,tXc1,text,0); + snprintf(text,TEXTSIZE,"\020\003\002%.0f\016\016%%\017",100 * pDecoinfo->super_saturation); t3_basics_colorscheme_mod(text); GFX_write_string(&FontT105,tXc1,text,0); }