Fixed current meter configuration for older versions.

10.3.x-maintenance
Michael Keller 2017-03-14 13:57:59 +13:00
parent 8dcf308a89
commit f14be04f5f
1 changed files with 2 additions and 10 deletions

View File

@ -119,11 +119,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
function load_current() {
var next_callback = load_rx_config;
if (semver.gte(CONFIG.flightControllerVersion, "3.1.0")) {
MSP.send_message(MSPCodes.MSP_CURRENT_METER_CONFIG, false, false, next_callback);
} else {
next_callback();
}
MSP.send_message(MSPCodes.MSP_CURRENT_METER_CONFIG, false, false, next_callback);
}
function load_rx_config() {
@ -858,11 +854,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
function save_current() {
var next_callback = save_rx_config;
if (semver.gte(CONFIG.flightControllerVersion, "3.1.0")) {
MSP.send_message(MSPCodes.MSP_SET_CURRENT_METER_CONFIG, mspHelper.crunch(MSPCodes.MSP_SET_CURRENT_METER_CONFIG), false, next_callback);
} else {
next_callback();
}
MSP.send_message(MSPCodes.MSP_SET_CURRENT_METER_CONFIG, mspHelper.crunch(MSPCodes.MSP_SET_CURRENT_METER_CONFIG), false, next_callback);
}
function save_rx_config() {