1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

Added the REDPINE SPI RX protocol. Also added SPI RX to analytics.

This commit is contained in:
mikeller 2020-03-21 23:47:16 +13:00
parent b5c4eba38b
commit 097596e5e1

View file

@ -861,13 +861,27 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
);
}
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
spiRxTypes.push(
'REDPINE',
);
}
var spiRx_e = $('select.spiRx');
for (var i = 0; i < spiRxTypes.length; i++) {
spiRx_e.append('<option value="' + i + '">' + spiRxTypes[i] + '</option>');
}
spiRx_e.change(function () {
RX_CONFIG.rxSpiProtocol = parseInt($(this).val());
const value = parseInt($(this).val());
let newValue = undefined;
if (value !== RX_CONFIG.rxSpiProtocol) {
newValue = $(this).find('option:selected').text();
}
self.analyticsChanges['SPIRXProtocol'] = newValue;
RX_CONFIG.rxSpiProtocol = value;
});
// select current serial RX type