Skip to content

Commit

Permalink
Merge pull request #3173 from iNavFlight/agh_home_symbol
Browse files Browse the repository at this point in the history
Prepend a home icon to the home distance in the OSD
  • Loading branch information
fiam authored May 7, 2018
2 parents 15cbf08 + 47f45eb commit 23b1b84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/drivers/max7456_symbols.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
#define SYM_CELLF 0xC3

// Map mode
#define SYM_HOME 0x04
#define SYM_HOME 191
#define SYM_AIRCRAFT 0x05
#define SYM_RANGE_100 0x21
#define SYM_RANGE_500 0x22
Expand Down
3 changes: 2 additions & 1 deletion src/main/io/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,8 @@ static bool osdDrawSingleElement(uint8_t item)

case OSD_HOME_DIST:
{
osdFormatDistanceSymbol(buff, GPS_distanceToHome * 100);
buff[0] = SYM_HOME;
osdFormatDistanceSymbol(&buff[1], GPS_distanceToHome * 100);
uint16_t dist_alarm = osdConfig()->dist_alarm;
if (dist_alarm > 0 && GPS_distanceToHome > dist_alarm) {
TEXT_ATTRIBUTES_ADD_BLINK(elemAttr);
Expand Down

0 comments on commit 23b1b84

Please sign in to comment.