Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tabs
diff options
context:
space:
mode:
authorPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2018-05-02 22:17:32 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2018-05-02 22:17:32 +0300
commit35170f74dd8def7e3cf2f622261680f6ef82bad2 (patch)
tree4d9fc152cd8182ff85afc6c0216152af347a5ff1 /tabs
parent9961fc1476800f796181bd81101b4845266501f4 (diff)
fixed RX protocol tracking vol. 2
Diffstat (limited to 'tabs')
-rw-r--r--tabs/configuration.js15
1 files changed, 3 insertions, 12 deletions
diff --git a/tabs/configuration.js b/tabs/configuration.js
index abddbe49..5fcd3ccd 100644
--- a/tabs/configuration.js
+++ b/tabs/configuration.js
@@ -699,22 +699,13 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
var rxTypes = FC.getRxTypes();
- function is_using_rx_type(name) {
- for (var ii = 0; ii < rxTypes.length; ii++) {
- if (rxTypes[ii].name == name) {
- return FC.isRxTypeEnabled(rxTypes[ii]);
- }
- }
- return false;
- }
-
// track feature usage
- if (is_using_rx_type('RX_SERIAL')) {
- googleAnalytics.sendEvent('Setting', 'SerialRxProvider', serialRxTypes[RX_CONFIG.serialrx_provider]);
+ if ($('#rxType').val() == 'RX_SERIAL') {
+ googleAnalytics.sendEvent('Setting', 'SerialRxProvider', $('#serial-rx-protocol').find(':selected').text());
}
// track feature usage
- if (is_using_rx_type('RX_SPI')) {
+ if ($('#rxType').val() == 'RX_SPI') {
googleAnalytics.sendEvent('Setting', 'nrf24Protocol', FC.getSPIProtocolTypes()[RX_CONFIG.spirx_protocol]);
}