|
|
|
@ -136,6 +136,8 @@ function onOpen(openInfo) {
|
|
|
|
|
}, 10000);
|
|
|
|
|
|
|
|
|
|
// request configuration data
|
|
|
|
|
MSP.send_message(MSP_codes.MSP_API_VERSION, false, false, function () {
|
|
|
|
|
GUI.log(chrome.i18n.getMessage('apiVersionReceived', [CONFIG.apiVersion]));
|
|
|
|
|
MSP.send_message(MSP_codes.MSP_UID, false, false, function () {
|
|
|
|
|
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 () {
|
|
|
|
@ -154,6 +156,7 @@ function onOpen(openInfo) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
|
|
|
|
GUI.log('Connection opened in <strong>pass-through</strong> mode');
|
|
|
|
|