From f14be04f5f8267fe0f410706a746212d7d69539b Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Tue, 14 Mar 2017 13:57:59 +1300 Subject: [PATCH] Fixed current meter configuration for older versions. --- tabs/configuration.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tabs/configuration.js b/tabs/configuration.js index be972689..5768359a 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -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() {