Add Home Flag symbol to Home Distance OSD element (#1430)

Add Home Flag symbol to Home Distance OSD element
10.7.0-preview
Michael Keller 2019-05-15 00:39:04 +12:00 committed by GitHub
commit 913134aed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ SYM.GPS_SAT_L = 0x1E;
SYM.GPS_SAT_R = 0x1F;
SYM.GPS_LAT = 0x89;
SYM.GPS_LON = 0x98;
SYM.HOMEFLAG = 0x11;
SYM.PB_START = 0x8A;
SYM.PB_FULL = 0x8B;
SYM.PB_EMPTY = 0x8D;
@ -761,7 +762,7 @@ OSD.constants = {
draw_order: 460,
positionable: true,
preview: function (osd_data) {
return '43' + FONT.symbol(osd_data.unit_mode === 0 ? SYM.FEET : SYM.METRE) + (semver.gte(CONFIG.apiVersion, "1.37.0") ? ' ' : '');
return FONT.symbol(SYM.HOMEFLAG) + '43' + FONT.symbol(osd_data.unit_mode === 0 ? SYM.FEET : SYM.METRE) + (semver.gte(CONFIG.apiVersion, "1.37.0") ? ' ' : '');
}
},
NUMERICAL_HEADING: {