mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
fix accidently removed buildinfo fetch on connect
This commit is contained in:
parent
569122392e
commit
0c2ec52bed
1 changed files with 11 additions and 4 deletions
|
@ -135,15 +135,22 @@ function onOpen(openInfo) {
|
||||||
|
|
||||||
// request configuration data
|
// request configuration data
|
||||||
MSP.send_message(MSP_codes.MSP_UID, false, false, function () {
|
MSP.send_message(MSP_codes.MSP_UID, false, false, function () {
|
||||||
|
GUI.timeout_remove('connecting'); // kill connecting timer
|
||||||
|
|
||||||
GUI.log(chrome.i18n.getMessage('uniqueDeviceIdReceived', [CONFIG.uid[0].toString(16) + CONFIG.uid[1].toString(16) + CONFIG.uid[2].toString(16)]));
|
GUI.log(chrome.i18n.getMessage('uniqueDeviceIdReceived', [CONFIG.uid[0].toString(16) + CONFIG.uid[1].toString(16) + CONFIG.uid[2].toString(16)]));
|
||||||
MSP.send_message(MSP_codes.MSP_IDENT, false, false, function () {
|
MSP.send_message(MSP_codes.MSP_IDENT, false, false, function () {
|
||||||
GUI.timeout_remove('connecting'); // kill connecting timer
|
|
||||||
|
|
||||||
if (CONFIG.version >= CONFIGURATOR.firmwareVersionAccepted) {
|
if (CONFIG.version >= CONFIGURATOR.firmwareVersionAccepted) {
|
||||||
CONFIGURATOR.connectionValid = true;
|
MSP.send_message(MSP_codes.MSP_BUILDINFO, false, false, function () {
|
||||||
|
googleAnalytics.sendEvent('Firmware', 'Using', CONFIG.buildInfo);
|
||||||
|
GUI.log('Running firmware released on: <strong>' + CONFIG.buildInfo + '</strong>');
|
||||||
|
|
||||||
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
// continue as usually
|
||||||
$('#tabs li a:first').click();
|
CONFIGURATOR.connectionValid = true;
|
||||||
|
|
||||||
|
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
||||||
|
$('#tabs li a:first').click();
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
GUI.log(chrome.i18n.getMessage('firmwareVersionNotSupported', [CONFIGURATOR.firmwareVersionAccepted]));
|
GUI.log(chrome.i18n.getMessage('firmwareVersionNotSupported', [CONFIGURATOR.firmwareVersionAccepted]));
|
||||||
$('div#port-picker a.connect').click(); // disconnect
|
$('div#port-picker a.connect').click(); // disconnect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue