From 0c2ec52bed13ce86174e4d88dde1c19df3adb647 Mon Sep 17 00:00:00 2001 From: cTn Date: Sun, 19 Oct 2014 15:52:55 +0200 Subject: [PATCH] fix accidently removed buildinfo fetch on connect --- js/serial_backend.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/js/serial_backend.js b/js/serial_backend.js index 706ff129b4..9596ab36e0 100644 --- a/js/serial_backend.js +++ b/js/serial_backend.js @@ -135,15 +135,22 @@ function onOpen(openInfo) { // request configuration data 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)])); MSP.send_message(MSP_codes.MSP_IDENT, false, false, function () { - GUI.timeout_remove('connecting'); // kill connecting timer 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: ' + CONFIG.buildInfo + ''); - $('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active'); - $('#tabs li a:first').click(); + // continue as usually + CONFIGURATOR.connectionValid = true; + + $('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active'); + $('#tabs li a:first').click(); + }); } else { GUI.log(chrome.i18n.getMessage('firmwareVersionNotSupported', [CONFIGURATOR.firmwareVersionAccepted])); $('div#port-picker a.connect').click(); // disconnect