1
0
Fork 0
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:
cTn 2014-10-01 12:58:09 +02:00
parent b9b5568a3b
commit 5cd042ae9d
15 changed files with 34 additions and 26 deletions

View file

@ -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);