mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
receiver in tabs
This commit is contained in:
parent
00e1ae0500
commit
13f49c0f64
2 changed files with 12 additions and 3 deletions
2
main.js
2
main.js
|
@ -80,7 +80,7 @@ $(document).ready(function() {
|
||||||
tabs.pid_tuning.initialize();
|
tabs.pid_tuning.initialize();
|
||||||
break;
|
break;
|
||||||
case 'tab_receiver':
|
case 'tab_receiver':
|
||||||
tab_initialize_receiver();
|
tabs.receiver.initialize();
|
||||||
break;
|
break;
|
||||||
case 'tab_auxiliary_configuration':
|
case 'tab_auxiliary_configuration':
|
||||||
tab_initialize_auxiliary_configuration();
|
tab_initialize_auxiliary_configuration();
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
function tab_initialize_receiver(callback) {
|
tabs.receiver = function() {
|
||||||
|
};
|
||||||
|
|
||||||
|
tabs.receiver.initialize = function(callback) {
|
||||||
ga_tracker.sendAppView('Receiver Page');
|
ga_tracker.sendAppView('Receiver Page');
|
||||||
GUI.active_tab = 'receiver';
|
GUI.active_tab = 'receiver';
|
||||||
|
|
||||||
|
@ -266,5 +269,11 @@ function tab_initialize_receiver(callback) {
|
||||||
GUI.interval_add('status_pull', function() {
|
GUI.interval_add('status_pull', function() {
|
||||||
MSP.send_message(MSP_codes.MSP_STATUS);
|
MSP.send_message(MSP_codes.MSP_STATUS);
|
||||||
}, 250, true);
|
}, 250, true);
|
||||||
|
|
||||||
|
if (callback) callback();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
tabs.receiver.cleanup = function(callback) {
|
||||||
|
if (callback) callback();
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue