Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepend a home icon to the home distance in the OSD #3173

Merged
merged 1 commit into from
May 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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