Fixed current meter configuration for older versions.
parent
8dcf308a89
commit
f14be04f5f
|
@ -119,11 +119,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
|
|
||||||
function load_current() {
|
function load_current() {
|
||||||
var next_callback = load_rx_config;
|
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);
|
MSP.send_message(MSPCodes.MSP_CURRENT_METER_CONFIG, false, false, next_callback);
|
||||||
} else {
|
|
||||||
next_callback();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_rx_config() {
|
function load_rx_config() {
|
||||||
|
@ -858,11 +854,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
|
|
||||||
function save_current() {
|
function save_current() {
|
||||||
var next_callback = save_rx_config;
|
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);
|
MSP.send_message(MSPCodes.MSP_SET_CURRENT_METER_CONFIG, mspHelper.crunch(MSPCodes.MSP_SET_CURRENT_METER_CONFIG), false, next_callback);
|
||||||
} else {
|
|
||||||
next_callback();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function save_rx_config() {
|
function save_rx_config() {
|
||||||
|
|
Loading…
Reference in New Issue