mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
remove active_tab_ref, name some of the anonymous functions, cleanup
This commit is contained in:
parent
b9b5568a3b
commit
5cd042ae9d
15 changed files with 34 additions and 26 deletions
|
@ -2,7 +2,8 @@
|
|||
|
||||
TABS.sensors = {};
|
||||
TABS.sensors.initialize = function (callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
var self = this;
|
||||
|
||||
GUI.active_tab = 'sensors';
|
||||
googleAnalytics.sendAppView('Sensor Page');
|
||||
|
||||
|
@ -405,7 +406,7 @@ TABS.sensors.initialize = function (callback) {
|
|||
});
|
||||
|
||||
// status data pulled via separate timer with static speed
|
||||
GUI.interval_add('status_pull', function () {
|
||||
GUI.interval_add('status_pull', function status_pull() {
|
||||
MSP.send_message(MSP_codes.MSP_STATUS);
|
||||
}, 250, true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue