mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Fix OSD speed unit preview
This commit is contained in:
parent
9ece824971
commit
6dee93cecd
1 changed files with 2 additions and 1 deletions
|
@ -713,7 +713,8 @@ OSD.loadDisplayFields = function() {
|
||||||
draw_order: 810,
|
draw_order: 810,
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview(osdData) {
|
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}`;
|
return `${FONT.symbol(SYM.SPEED)}40${unit}`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue