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:
parent
b5c4eba38b
commit
097596e5e1
1 changed files with 15 additions and 1 deletions
|
@ -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');
|
var spiRx_e = $('select.spiRx');
|
||||||
for (var i = 0; i < spiRxTypes.length; i++) {
|
for (var i = 0; i < spiRxTypes.length; i++) {
|
||||||
spiRx_e.append('<option value="' + i + '">' + spiRxTypes[i] + '</option>');
|
spiRx_e.append('<option value="' + i + '">' + spiRxTypes[i] + '</option>');
|
||||||
}
|
}
|
||||||
|
|
||||||
spiRx_e.change(function () {
|
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
|
// select current serial RX type
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue