From 3e1818c27d70dc3099888503a47f9ee996ac422c Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Mon, 9 Jan 2017 10:57:14 +1300 Subject: [PATCH] Fixed acc hardware switch. --- tabs/configuration.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tabs/configuration.js b/tabs/configuration.js index 85fb02fc..11997c2b 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -769,6 +769,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) { var next_callback = save_name; if (semver.gte(CONFIG.flightControllerVersion, "2.8.2")) { + SENSOR_CONFIG.acc_hardware = $('input[id="accHardwareSwitch"]').is(':checked') ? 0 : 1; SENSOR_CONFIG.baro_hardware = $('input[id="baroHardwareSwitch"]').is(':checked') ? 0 : 1; SENSOR_CONFIG.mag_hardware = $('input[id="magHardwareSwitch"]').is(':checked') ? 0 : 1; MSP.send_message(MSPCodes.MSP_SET_SENSOR_CONFIG, mspHelper.crunch(MSPCodes.MSP_SET_SENSOR_CONFIG), false, next_callback);