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:
parent
915de9d6db
commit
bd03951ca4
3 changed files with 12 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue