Skip to content

Commit 354836f

Browse files
authored
Merge pull request #377 from mikeller/fix_acc_hardware_disable
Fixed acc hardware switch.
2 parents 109a803 + 3e1818c commit 354836f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tabs/configuration.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
769769
var next_callback = save_name;
770770

771771
if (semver.gte(CONFIG.flightControllerVersion, "2.8.2")) {
772+
SENSOR_CONFIG.acc_hardware = $('input[id="accHardwareSwitch"]').is(':checked') ? 0 : 1;
772773
SENSOR_CONFIG.baro_hardware = $('input[id="baroHardwareSwitch"]').is(':checked') ? 0 : 1;
773774
SENSOR_CONFIG.mag_hardware = $('input[id="magHardwareSwitch"]').is(':checked') ? 0 : 1;
774775
MSP.send_message(MSPCodes.MSP_SET_SENSOR_CONFIG, mspHelper.crunch(MSPCodes.MSP_SET_SENSOR_CONFIG), false, next_callback);

0 commit comments

Comments
 (0)