mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Remove second symbol in the Throttle OSD element
This commit is contained in:
parent
5673310277
commit
ba99bdae21
2 changed files with 3 additions and 5 deletions
|
@ -35,13 +35,13 @@
|
|||
#define SYM_LON 0x98
|
||||
#define SYM_ALTITUDE 0x7F
|
||||
#define SYM_TOTAL_DISTANCE 0x71
|
||||
#define SYM_TRIANGLE 0x05
|
||||
|
||||
// RSSI
|
||||
#define SYM_RSSI 0x01
|
||||
|
||||
// Throttle Position (%)
|
||||
#define SYM_THR 0x04
|
||||
#define SYM_THR1 0x05
|
||||
|
||||
// Map mode
|
||||
#define SYM_HOME 0x04
|
||||
|
|
|
@ -791,7 +791,7 @@ static void osdElementGpsHomeDirection(osdElementParms_t *element)
|
|||
element->buff[0] = osdGetDirectionSymbolFromHeading(h);
|
||||
} else {
|
||||
// We don't have a HOME symbol in the font, by now we use this
|
||||
element->buff[0] = SYM_THR1;
|
||||
element->buff[0] = SYM_TRIANGLE;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
@ -1076,9 +1076,7 @@ static void osdElementStickOverlay(osdElementParms_t *element)
|
|||
|
||||
static void osdElementThrottlePosition(osdElementParms_t *element)
|
||||
{
|
||||
element->buff[0] = SYM_THR;
|
||||
element->buff[1] = SYM_THR1;
|
||||
tfp_sprintf(element->buff + 2, "%3d", calculateThrottlePercent());
|
||||
tfp_sprintf(element->buff, "%c%3d", SYM_THR, calculateThrottlePercent());
|
||||
}
|
||||
|
||||
static void osdElementTimer(osdElementParms_t *element)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue