diff --git a/js/msp.js b/js/msp.js index e062b324..1f8ffa16 100644 --- a/js/msp.js +++ b/js/msp.js @@ -854,6 +854,7 @@ var MSP = { RX_CONFIG.rx_max_usec = data.getUint16(offset, 1); offset += 2; if (semver.gte(CONFIG.apiVersion, "1.21.0")) { + offset += 4; // 4 null bytes for betaflight compatibility RX_CONFIG.nrf24rx_protocol = data.getUint8(offset, 1); offset++; RX_CONFIG.nrf24rx_id = data.getUint32(offset, 1); @@ -1387,6 +1388,10 @@ MSP.crunch = function (code) { buffer.push(lowByte(RX_CONFIG.rx_max_usec)); buffer.push(highByte(RX_CONFIG.rx_max_usec)); if (semver.gte(CONFIG.apiVersion, "1.21.0")) { + buffer.push(0); // 4 null bytes for betaflight compatibility + buffer.push(0); + buffer.push(0); + buffer.push(0); buffer.push(RX_CONFIG.nrf24rx_protocol); buffer.push(RX_CONFIG.nrf24rx_id & 0xFF); buffer.push((RX_CONFIG.nrf24rx_id >> 8) & 0xFF); diff --git a/tabs/configuration.js b/tabs/configuration.js index e0898fa7..10eb0e59 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -156,8 +156,8 @@ TABS.configuration.initialize = function (callback, scrollPosition) { if (semver.gte(CONFIG.apiVersion, "1.21.0")) { features.push( - {bit: 26, group: 'rxMode', mode: 'group', name: 'RX_NRF24', haveTip: true}, - {bit: 27, group: 'other', name: 'SOFTSPI'} + {bit: 25, group: 'rxMode', mode: 'group', name: 'RX_NRF24', haveTip: true}, + {bit: 26, group: 'other', name: 'SOFTSPI'} ); }