1
0
Fork 0
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:
cTn 2014-07-02 13:54:48 +02:00
parent 4ce533826d
commit a7975883ee

View file

@ -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();