mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
CLI available for old firmware versions
This commit is contained in:
parent
0c6b55d070
commit
32a27b73a7
5 changed files with 13 additions and 3 deletions
7
js/serial_backend.js
Normal file → Executable file
7
js/serial_backend.js
Normal file → Executable file
|
@ -27,6 +27,7 @@ $(document).ready(function () {
|
|||
|
||||
GUI.connected_to = false;
|
||||
CONFIGURATOR.connectionValid = false;
|
||||
CONFIGURATOR.connectionValidCliOnly = false;
|
||||
MSP.disconnect_cleanup();
|
||||
PortUsage.reset();
|
||||
|
||||
|
@ -177,7 +178,11 @@ function onOpen(openInfo) {
|
|||
});
|
||||
} else {
|
||||
GUI.log(chrome.i18n.getMessage('firmwareVersionNotSupported', [CONFIGURATOR.apiVersionAccepted]));
|
||||
$('div#port-picker a.connect').click(); // disconnect
|
||||
CONFIGURATOR.connectionValid = true; // making it possible to open the CLI tab
|
||||
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
||||
$('#tabs li a:last').click(); // open CLI tab
|
||||
GUI.timeout_remove('connecting'); // kill connecting timer
|
||||
CONFIGURATOR.connectionValidCliOnly = true;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue