mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 04:45:18 +03:00
use GUI status instead of UI status
This commit is contained in:
parent
4ce533826d
commit
a7975883ee
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ var serial = {
|
|||
GUI.log('Unrecoverable <span style="color: red">failure</span> of serial connection, disconnecting...');
|
||||
ga_tracker.sendEvent('Error', 'Serial', 'unrecoverable');
|
||||
|
||||
if ($('a.connect').hasClass('active')) {
|
||||
if (GUI.connected_to || GUI.connecting_to) {
|
||||
$('a.connect').click();
|
||||
} else {
|
||||
self.disconnect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue