mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +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
6
main.js
Normal file → Executable file
6
main.js
Normal file → Executable file
|
@ -62,12 +62,16 @@ $(document).ready(function () {
|
|||
var self = this,
|
||||
tab = $(self).parent().prop('class');
|
||||
|
||||
// if there is no active connection, return
|
||||
if (!CONFIGURATOR.connectionValid) {
|
||||
GUI.log('You need to <strong>connect</strong> before you can view any of the tabs');
|
||||
return;
|
||||
}
|
||||
|
||||
if (CONFIGURATOR.connectionValidCliOnly) {
|
||||
GUI.log('You need to <strong>Upgrade</strong> your firmware before you can view any of the tabs');
|
||||
return;
|
||||
}
|
||||
|
||||
GUI.tab_switch_in_progress = true;
|
||||
|
||||
GUI.tab_switch_cleanup(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue