mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Auto merged - #2471 at Fri, 11 Jun 2021 05:17:30 GMT
Fix OSD speed unit preview
This commit is contained in:
commit
609a2a33e7
1 changed files with 2 additions and 1 deletions
|
@ -713,7 +713,8 @@ OSD.loadDisplayFields = function() {
|
|||
draw_order: 810,
|
||||
positionable: true,
|
||||
preview(osdData) {
|
||||
const unit = FONT.symbol(osdData.unit_mode === 0 || osdData.unit_mode === 1 ? SYM.MPH : SYM.KPH);
|
||||
const UNIT_METRIC = OSD.constants.UNIT_TYPES.indexOf("METRIC");
|
||||
const unit = FONT.symbol(osdData.unit_mode === UNIT_METRIC ? SYM.KPH : SYM.MPH);
|
||||
return `${FONT.symbol(SYM.SPEED)}40${unit}`;
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue