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

Convert serial protocols to select2

This commit is contained in:
Asizon 2021-08-22 13:15:27 +02:00
parent bfa9a38fef
commit b83ccdf146

View file

@ -259,6 +259,15 @@ TABS.receiver.initialize = function (callback) {
// select current serial RX type
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)) {
const spiRxTypes = [
'NRF24_V202_250K',