1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Added altitude symbol in OSD.

This commit is contained in:
mikeller 2019-05-05 21:58:43 +12:00
parent 915de9d6db
commit bd03951ca4
3 changed files with 12 additions and 11 deletions

View file

@ -210,9 +210,9 @@ static void osdFormatAltitudeString(char * buff, int32_t altitudeCm)
{
const int alt = osdGetMetersToSelectedUnit(altitudeCm) / 10;
tfp_sprintf(buff, "%5d %c", alt, osdGetMetersToSelectedUnitSymbol());
buff[5] = buff[4];
buff[4] = '.';
tfp_sprintf(buff, "%c%5d %c", SYM_ALTITUDE, alt, osdGetMetersToSelectedUnitSymbol());
buff[6] = buff[5];
buff[5] = '.';
}
#ifdef USE_GPS