comparison Discovery/Src/t7.c @ 187:485c5135cf7f cleanup-2

cleanup: forgotten cleanup from 9da7dd50e2ec Simply cleanup something forgotten in 9da7dd50e2ec. There is so much duplicate code, that things are very easy to forget when cleaning up. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Fri, 15 Mar 2019 12:53:14 +0100
parents d36596281501
children 8b8074080d7b
comparison
equal deleted inserted replaced
186:f11f0bf6ef2d 187:485c5135cf7f
72 extern uint8_t write_gas(char *text, uint8_t oxygen, uint8_t helium); 72 extern uint8_t write_gas(char *text, uint8_t oxygen, uint8_t helium);
73 73
74 /* Exported variables --------------------------------------------------------*/ 74 /* Exported variables --------------------------------------------------------*/
75 75
76 /* Private variables ---------------------------------------------------------*/ 76 /* Private variables ---------------------------------------------------------*/
77 float depthLastCall[9] = { 0,0,0,0,0,0,0,0,0};
78 uint8_t idDepthLastCall = 0;
79 float temperatureLastCall[3] = { 0,0,0}; 77 float temperatureLastCall[3] = { 0,0,0};
80 uint8_t idTemperatureLastCall = 0; 78 uint8_t idTemperatureLastCall = 0;
81 79
82 GFX_DrawCfgScreen t7screen; 80 GFX_DrawCfgScreen t7screen;
83 GFX_DrawCfgScreen t7screenCompass; 81 GFX_DrawCfgScreen t7screenCompass;
2051 snprintf(TextL2,TEXTSIZE,"\020%01.0f",unit_depth_float(stateUsed->lifeData.max_depth_meter)); 2049 snprintf(TextL2,TEXTSIZE,"\020%01.0f",unit_depth_float(stateUsed->lifeData.max_depth_meter));
2052 2050
2053 t7_colorscheme_mod(TextL2); 2051 t7_colorscheme_mod(TextL2);
2054 GFX_write_string(&FontT105,&t7l2,TextL2,1); 2052 GFX_write_string(&FontT105,&t7l2,TextL2,1);
2055 2053
2056 /* ascentrate graph */ 2054 /* ascent rate graph */
2057 if(stateUsed->lifeData.ascent_rate_meter_per_min > 0) 2055 if(stateUsed->lifeData.ascent_rate_meter_per_min > 0)
2058 { 2056 {
2059 if(!pSettings->FlipDisplay) 2057 if(!pSettings->FlipDisplay)
2060 { 2058 {
2061 start.y = t7l1.WindowY0 - 1; 2059 start.y = t7l1.WindowY0 - 1;