1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-18 22:05:10 +03:00

Flash savings 24B

I am learning code optimisations, can someone check this comit please?
This have not to change anything, only save flash.
This commit is contained in:
mhotar 2014-01-26 12:32:09 +01:00
parent 1d0ebe5642
commit f676589989
4 changed files with 14 additions and 16 deletions

View file

@ -2271,7 +2271,8 @@ void DrawCurve(uint8_t offset=0)
uint8_t i = 0;
do {
point_t point = getPoint(i++);
point_t point = getPoint(i);
i++;
if (point.x == 0) break;
lcd_filled_rect(point.x-offset, point.y-1, 3, 3, SOLID, FORCE); // do markup square
} while(1);