comparison Discovery/Src/t7.c @ 392:b57f497726f7 ImproveBluetooth

Bugfix negativ ascend bar: Due to floating <> int conversion a value < 1 will result in a small bar in negativ direction if close to surface => display only ascend rates > 1m per minute
author ideenmodellierer
date Tue, 26 Nov 2019 18:13:26 +0100
parents 14fd5f35cb50
children 73db1565220b
comparison
equal deleted inserted replaced
391:27c56f1b1856 392:b57f497726f7
2121 2121
2122 t7_colorscheme_mod(TextL2); 2122 t7_colorscheme_mod(TextL2);
2123 GFX_write_string(&FontT105,&t7l2,TextL2,1); 2123 GFX_write_string(&FontT105,&t7l2,TextL2,1);
2124 2124
2125 /* ascent rate graph */ 2125 /* ascent rate graph */
2126 if(stateUsed->lifeData.ascent_rate_meter_per_min > 0) 2126 if(stateUsed->lifeData.ascent_rate_meter_per_min > 1) /* a value < 1 would cause a bar in negative direction brush rectangle of 12 and step width of 6 */
2127 { 2127 {
2128 if(!pSettings->FlipDisplay) 2128 if(!pSettings->FlipDisplay)
2129 { 2129 {
2130 start.y = t7l1.WindowY0 - 1; 2130 start.y = t7l1.WindowY0 - 1;
2131 } 2131 }