Update power.js
parent
95f4f1c888
commit
b0528143a3
|
@ -253,12 +253,8 @@ 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]));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
MSP.send_message(MSPCodes.MSP_CURRENT_METERS, false, false, function () {
|
||||
|
|
Loading…
Reference in New Issue