1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00

Fixes as suggested by @marbalon

This commit is contained in:
Martin Budden 2017-06-28 19:58:57 +01:00
parent 060367c367
commit 23874e90c6

View file

@ -207,7 +207,7 @@ static bool osdDrawSingleElement(uint8_t item)
uint8_t p = calculateBatteryPercentage();
p = (100 - p) / 16.6;
buff[0] = SYM_BATT_FULL + p;
tfp_sprintf(buff + 1, "%2d.%1dV", vbat / 10, vbat % 10);
tfp_sprintf(buff + 1, "%d.%1dV ", vbat / 10, vbat % 10);
break;
}
@ -401,7 +401,7 @@ static bool osdDrawSingleElement(uint8_t item)
for (int x = -4; x <= 4; x++) {
// clear the y area before writing the new horizon character
for (int y = 0; y <= 9; y++) {
for (int y = 0; y <= 7; y++) {
max7456WriteChar(elemPosX + x, elemPosY + y, 0x20);
}
int y = (rollAngle * x) / 64;