diff --git a/src/js/tabs/configuration.js b/src/js/tabs/configuration.js index c791b946..fde2d4c0 100644 --- a/src/js/tabs/configuration.js +++ b/src/js/tabs/configuration.js @@ -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(''); } 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