mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-22 15:55:33 +03:00
Update power.js
This commit is contained in:
parent
95f4f1c888
commit
b0528143a3
1 changed files with 1 additions and 5 deletions
|
@ -253,11 +253,7 @@ TABS.power.initialize = function (callback) {
|
|||
for (var i = 0; i < VOLTAGE_METERS.length; i++) {
|
||||
var elementName = '#voltage-meter-' + i + ' .value';
|
||||
var element = $(elementName);
|
||||
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
|
||||
element.text(i18n.getMessage('powerVoltageValue', [ANALOG.voltage]));
|
||||
} else {
|
||||
element.text(i18n.getMessage('powerVoltageValue', [VOLTAGE_METERS[i].voltage]));
|
||||
}
|
||||
element.text(i18n.getMessage('powerVoltageValue', [VOLTAGE_METERS[i].voltage]));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue