use GUI status instead of UI status

pull/3/head
cTn 10 years ago
parent 4ce533826d
commit a7975883ee

@ -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…
Cancel
Save