mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-20 06:45:12 +03:00
Merge pull request #1916 from betaflight/log_connection_failure_reason
Log the reason for connection failures to analytics.
This commit is contained in:
commit
91c20d454e
1 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ function onOpen(openInfo) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
analytics.sendEvent(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'ConnectionRefusedFirmwareType');
|
analytics.sendEvent(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'ConnectionRefusedFirmwareType', CONFIG.flightControllerIdentifier);
|
||||||
|
|
||||||
var dialog = $('.dialogConnectWarning')[0];
|
var dialog = $('.dialogConnectWarning')[0];
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ function onOpen(openInfo) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
analytics.sendEvent(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'ConnectionRefusedFirmwareVersion');
|
analytics.sendEvent(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'ConnectionRefusedFirmwareVersion', CONFIG.apiVersion);
|
||||||
|
|
||||||
var dialog = $('.dialogConnectWarning')[0];
|
var dialog = $('.dialogConnectWarning')[0];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue