1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

Another 16bytes flash saved

This commit is contained in:
bsongis 2012-02-05 19:01:28 +00:00
parent fa1ebafae4
commit f42596a2a7
2 changed files with 2 additions and 4 deletions

View file

@ -85,9 +85,8 @@ void doMainScreenGrphics()
void displayAltitudeLine(uint8_t x, uint8_t y, uint8_t flags)
{
lcd_puts_P(x, y, STR_ALT);
uint16_t value = frskyHubData.baroAltitude + baroAltitudeOffset;
lcd_outdezAtt(lcd_lastPos, (flags & DBLSIZE) ? y-FH : y, value, flags|LEFT|UNSIGN);
lcd_putc(lcd_lastPos, y, 'm') ;
int16_t value = frskyHubData.baroAltitude + baroAltitudeOffset;
putsTelemetryValue(lcd_lastPos, y, value, UNIT_METERS, flags|LEFT);
}
#endif