Skip to content

Commit 96dd879

Browse files
committed
Fixed setting of serialRx provider.
1 parent 1809723 commit 96dd879

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

js/fc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ var FC = {
6868
BF_CONFIG = {
6969
mixerConfiguration: 0,
7070
features: new Features(CONFIG),
71-
serialrx_type: 0,
7271
board_align_roll: 0,
7372
board_align_pitch: 0,
7473
board_align_yaw: 0,

js/msp/MSPHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ MspHelper.prototype.process_data = function(dataHandler) {
436436
case MSPCodes.MSP_BF_CONFIG:
437437
BF_CONFIG.mixerConfiguration = data.readU8();
438438
BF_CONFIG.features.setMask(data.readU32());
439-
BF_CONFIG.serialrx_type = data.readU8();
439+
RX_CONFIG.serialrx_provider = data.readU8();
440440
BF_CONFIG.board_align_roll = data.read16(); // -180 - 360
441441
BF_CONFIG.board_align_pitch = data.read16(); // -180 - 360
442442
BF_CONFIG.board_align_yaw = data.read16(); // -180 - 360
@@ -989,7 +989,7 @@ MspHelper.prototype.crunch = function(code) {
989989
var featureMask = BF_CONFIG.features.getMask();
990990
buffer.push8(BF_CONFIG.mixerConfiguration)
991991
.push32(featureMask)
992-
.push8(BF_CONFIG.serialrx_type)
992+
.push8(RX_CONFIG.serialrx_provider)
993993
.push16(BF_CONFIG.board_align_roll)
994994
.push16(BF_CONFIG.board_align_pitch)
995995
.push16(BF_CONFIG.board_align_yaw)

tabs/configuration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,11 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
469469
}
470470

471471
serialRX_e.change(function () {
472-
BF_CONFIG.serialrx_type = parseInt($(this).val());
472+
RX_CONFIG.serialrx_provider = parseInt($(this).val());
473473
});
474474

475475
// select current serial RX type
476-
serialRX_e.val(BF_CONFIG.serialrx_type);
476+
serialRX_e.val(RX_CONFIG.serialrx_provider);
477477

478478
// for some odd reason chrome 38+ changes scroll according to the touched select element
479479
// i am guessing this is a bug, since this wasn't happening on 37

0 commit comments

Comments
 (0)