diff --git a/js/fc.js b/js/fc.js index d68675a0..1e73ff49 100644 --- a/js/fc.js +++ b/js/fc.js @@ -68,7 +68,6 @@ var FC = { BF_CONFIG = { mixerConfiguration: 0, features: new Features(CONFIG), - serialrx_type: 0, board_align_roll: 0, board_align_pitch: 0, board_align_yaw: 0, diff --git a/js/msp/MSPHelper.js b/js/msp/MSPHelper.js index e62bdef1..43245b12 100644 --- a/js/msp/MSPHelper.js +++ b/js/msp/MSPHelper.js @@ -436,7 +436,7 @@ MspHelper.prototype.process_data = function(dataHandler) { case MSPCodes.MSP_BF_CONFIG: BF_CONFIG.mixerConfiguration = data.readU8(); BF_CONFIG.features.setMask(data.readU32()); - BF_CONFIG.serialrx_type = data.readU8(); + RX_CONFIG.serialrx_provider = data.readU8(); BF_CONFIG.board_align_roll = data.read16(); // -180 - 360 BF_CONFIG.board_align_pitch = data.read16(); // -180 - 360 BF_CONFIG.board_align_yaw = data.read16(); // -180 - 360 @@ -989,7 +989,7 @@ MspHelper.prototype.crunch = function(code) { var featureMask = BF_CONFIG.features.getMask(); buffer.push8(BF_CONFIG.mixerConfiguration) .push32(featureMask) - .push8(BF_CONFIG.serialrx_type) + .push8(RX_CONFIG.serialrx_provider) .push16(BF_CONFIG.board_align_roll) .push16(BF_CONFIG.board_align_pitch) .push16(BF_CONFIG.board_align_yaw) diff --git a/tabs/configuration.js b/tabs/configuration.js index 83a05223..be972689 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -469,11 +469,11 @@ TABS.configuration.initialize = function (callback, scrollPosition) { } serialRX_e.change(function () { - BF_CONFIG.serialrx_type = parseInt($(this).val()); + RX_CONFIG.serialrx_provider = parseInt($(this).val()); }); // select current serial RX type - serialRX_e.val(BF_CONFIG.serialrx_type); + serialRX_e.val(RX_CONFIG.serialrx_provider); // for some odd reason chrome 38+ changes scroll according to the touched select element // i am guessing this is a bug, since this wasn't happening on 37