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:
parent
eaddb59e48
commit
25cd902bd0
1 changed files with 3 additions and 1 deletions
|
@ -519,7 +519,9 @@ OSD.constants = {
|
||||||
default_position: -1,
|
default_position: -1,
|
||||||
draw_order: 330,
|
draw_order: 330,
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview: ' 40K'
|
preview: function(osd_data) {
|
||||||
|
return ' 40' + (osd_data.unit_mode === 0 ? 'M' : 'K');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
GPS_SATS: {
|
GPS_SATS: {
|
||||||
name: 'GPS_SATS',
|
name: 'GPS_SATS',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue