Remove second symbol in the Throttle OSD element (#8372)

Remove second symbol in the Throttle OSD element
This commit is contained in:
Michael Keller 2019-06-07 09:17:24 +12:00 committed by GitHub
commit c57d858774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -41,7 +41,6 @@
// Throttle Position (%)
#define SYM_THR 0x04
#define SYM_THR1 0x05
// Map mode
#define SYM_HOME 0x04

View File

@ -787,8 +787,8 @@ static void osdElementGpsHomeDirection(osdElementParms_t *element)
const int h = GPS_directionToHome - DECIDEGREES_TO_DEGREES(attitude.values.yaw);
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;
// We use this symbol when we are at HOME position
element->buff[0] = '#';
}
} else {
@ -1073,9 +1073,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)