1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Fix OSD preview to use correct units suffix for GPS speed

Respect the units selection and display "K" for metric and "M" for imperial.
This commit is contained in:
Bruce Luckcuck 2018-05-13 12:31:29 -04:00
parent eaddb59e48
commit 25cd902bd0

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',