mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Cycle Time value is now visible in status bar
This commit is contained in:
parent
f42a1fd708
commit
652f560e42
11 changed files with 45 additions and 16 deletions
26
js/main.js
26
js/main.js
|
@ -7,6 +7,17 @@ if (navigator.appVersion.indexOf("Linux") != -1) OS = "Linux";
|
|||
|
||||
var timers = new Array();
|
||||
|
||||
function disable_timers() {
|
||||
for (var i = 0; i < timers.length; i++) {
|
||||
clearInterval(timers[i]);
|
||||
}
|
||||
|
||||
// kill all the refferences
|
||||
timers = [];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
var tabs = $('#tabs > ul');
|
||||
$('a', tabs).click(function() {
|
||||
|
@ -46,22 +57,11 @@ $(document).ready(function() {
|
|||
} else if ($(this).parent().hasClass('tab_cli')) {
|
||||
$('#content').load("./tabs/cli.html", tab_initialize_cli);
|
||||
} else if ($(this).parent().hasClass('tab_about')) {
|
||||
$('#content').load("./tabs/about.html");
|
||||
$('#content').load("./tabs/about.html", tab_initialize_about);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// temporary
|
||||
//$('#content').load("./tabs/gps.html", tab_initialize_gps);
|
||||
});
|
||||
|
||||
function disable_timers() {
|
||||
for (var i = 0; i < timers.length; i++) {
|
||||
clearInterval(timers[i]);
|
||||
}
|
||||
|
||||
// kill all the refferences
|
||||
timers = [];
|
||||
|
||||
return true;
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue