Merge pull request #447 from mikeller/fixed_serialrx_provider_setting

Fixed setting of serialRx provider.
10.3.x-maintenance
borisbstyle 2017-02-23 09:16:08 +01:00 committed by GitHub
commit 6647c37759
3 changed files with 4 additions and 5 deletions

View File

@ -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,

View File

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

View File

@ -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