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:
parent
b477d1511a
commit
b892fcb376
3 changed files with 18 additions and 22 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue