1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 08:15:22 +03:00

better handling of wrong baud rate

+ some tiny UI changes due to the #content change for mac os x which
kinda broke the "floating" tabs hack with absolute position
This commit is contained in:
cTn 2013-04-13 02:32:35 +02:00
parent b477d1511a
commit b892fcb376
3 changed files with 18 additions and 22 deletions

View file

@ -1,5 +1,6 @@
var connectionId = -1;
var connection_delay = 0; // delay which defines "when" will the configurator request configurator data after connection was established
var configuration_received = false;
var MSP_codes = {
MSP_IDENT: 100,
@ -170,6 +171,9 @@ $(document).ready(function() {
// Change port utilization to 0
$('span.port-usage').html('0%');
// reset valid config received variable (used to block tabs while not connected properly)
configuration_received = false;
$(this).text('Connect');
$(this).removeClass('active');
} else { // even number of clicks
@ -412,6 +416,7 @@ function process_message(code, data) {
}
// IDENT received, show the tab content
configuration_received = true;
$('#tabs li a:first').click();
break;
case MSP_codes.MSP_STATUS: