Merge pull request #1023 from etracer65/fix_osd_preview_speed_units

Fix OSD preview to use correct units suffix for GPS speed
10.3.x-maintenance
Michael Keller 2018-05-19 17:48:28 +12:00 committed by GitHub
commit 38f2b314fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -519,7 +519,9 @@ OSD.constants = {
default_position: -1,
draw_order: 330,
positionable: true,
preview: ' 40K'
preview: function(osd_data) {
return ' 40' + (osd_data.unit_mode === 0 ? 'M' : 'K');
}
},
GPS_SATS: {
name: 'GPS_SATS',