Merge pull request #447 from mikeller/fixed_serialrx_provider_setting
Fixed setting of serialRx provider.10.3.x-maintenance
commit
6647c37759
1
js/fc.js
1
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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue