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);