mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +03:00
Convert serial protocols to select2
This commit is contained in:
parent
bfa9a38fef
commit
b83ccdf146
1 changed files with 9 additions and 0 deletions
|
@ -259,6 +259,15 @@ TABS.receiver.initialize = function (callback) {
|
||||||
// select current serial RX type
|
// select current serial RX type
|
||||||
serialRxSelectElement.val(FC.RX_CONFIG.serialrx_provider);
|
serialRxSelectElement.val(FC.RX_CONFIG.serialrx_provider);
|
||||||
|
|
||||||
|
// Convert to select2 and order alphabetic
|
||||||
|
serialRxSelectElement.select2({
|
||||||
|
sorter(data) {
|
||||||
|
return data.sort(function(a, b) {
|
||||||
|
return a.text.localeCompare(b.text);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_31)) {
|
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_31)) {
|
||||||
const spiRxTypes = [
|
const spiRxTypes = [
|
||||||
'NRF24_V202_250K',
|
'NRF24_V202_250K',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue