mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 21:05:28 +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...');
|
GUI.log('Unrecoverable <span style="color: red">failure</span> of serial connection, disconnecting...');
|
||||||
ga_tracker.sendEvent('Error', 'Serial', 'unrecoverable');
|
ga_tracker.sendEvent('Error', 'Serial', 'unrecoverable');
|
||||||
|
|
||||||
if ($('a.connect').hasClass('active')) {
|
if (GUI.connected_to || GUI.connecting_to) {
|
||||||
$('a.connect').click();
|
$('a.connect').click();
|
||||||
} else {
|
} else {
|
||||||
self.disconnect();
|
self.disconnect();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue