mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
Fixed setting of serialRx provider.
This commit is contained in:
parent
1809723142
commit
96dd879e7e
3 changed files with 4 additions and 5 deletions
1
js/fc.js
1
js/fc.js
|
@ -68,7 +68,6 @@ var FC = {
|
||||||
BF_CONFIG = {
|
BF_CONFIG = {
|
||||||
mixerConfiguration: 0,
|
mixerConfiguration: 0,
|
||||||
features: new Features(CONFIG),
|
features: new Features(CONFIG),
|
||||||
serialrx_type: 0,
|
|
||||||
board_align_roll: 0,
|
board_align_roll: 0,
|
||||||
board_align_pitch: 0,
|
board_align_pitch: 0,
|
||||||
board_align_yaw: 0,
|
board_align_yaw: 0,
|
||||||
|
|
|
@ -436,7 +436,7 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
||||||
case MSPCodes.MSP_BF_CONFIG:
|
case MSPCodes.MSP_BF_CONFIG:
|
||||||
BF_CONFIG.mixerConfiguration = data.readU8();
|
BF_CONFIG.mixerConfiguration = data.readU8();
|
||||||
BF_CONFIG.features.setMask(data.readU32());
|
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_roll = data.read16(); // -180 - 360
|
||||||
BF_CONFIG.board_align_pitch = data.read16(); // -180 - 360
|
BF_CONFIG.board_align_pitch = data.read16(); // -180 - 360
|
||||||
BF_CONFIG.board_align_yaw = 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();
|
var featureMask = BF_CONFIG.features.getMask();
|
||||||
buffer.push8(BF_CONFIG.mixerConfiguration)
|
buffer.push8(BF_CONFIG.mixerConfiguration)
|
||||||
.push32(featureMask)
|
.push32(featureMask)
|
||||||
.push8(BF_CONFIG.serialrx_type)
|
.push8(RX_CONFIG.serialrx_provider)
|
||||||
.push16(BF_CONFIG.board_align_roll)
|
.push16(BF_CONFIG.board_align_roll)
|
||||||
.push16(BF_CONFIG.board_align_pitch)
|
.push16(BF_CONFIG.board_align_pitch)
|
||||||
.push16(BF_CONFIG.board_align_yaw)
|
.push16(BF_CONFIG.board_align_yaw)
|
||||||
|
|
|
@ -469,11 +469,11 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
}
|
}
|
||||||
|
|
||||||
serialRX_e.change(function () {
|
serialRX_e.change(function () {
|
||||||
BF_CONFIG.serialrx_type = parseInt($(this).val());
|
RX_CONFIG.serialrx_provider = parseInt($(this).val());
|
||||||
});
|
});
|
||||||
|
|
||||||
// select current serial RX type
|
// 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
|
// 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
|
// i am guessing this is a bug, since this wasn't happening on 37
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue