Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Tue Nov 26 18:02:48 2019 +0100 +++ b/Discovery/Src/t7.c Tue Nov 26 18:13:26 2019 +0100 @@ -2123,7 +2123,7 @@ GFX_write_string(&FontT105,&t7l2,TextL2,1); /* ascent rate graph */ - if(stateUsed->lifeData.ascent_rate_meter_per_min > 0) + 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 */ { if(!pSettings->FlipDisplay) {