1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 08:45:36 +03:00

enabling strict in last 2 tabs

This commit is contained in:
cTn 2014-08-09 20:51:06 +02:00 committed by Dominic Clifton
parent a893261e6d
commit cc8ca21cc0
2 changed files with 33 additions and 29 deletions

View file

@ -1,3 +1,5 @@
'use strict';
var MSP_pass_through = false;
tabs.logging = {};
@ -11,11 +13,11 @@ tabs.logging.initialize = function(callback) {
if (configuration_received) {
MSP.send_message(MSP_codes.MSP_RC, false, false, get_motor_data);
function get_motor_data() {
var get_motor_data = function () {
MSP.send_message(MSP_codes.MSP_MOTOR, false, false, load_html);
}
function load_html() {
var load_html = function () {
$('#content').load("./tabs/logging.html", process_html);
}
} else {
@ -61,7 +63,7 @@ tabs.logging.initialize = function(callback) {
// print header for the csv file
print_head();
function log_data_poll() {
var log_data_poll = function () {
if (requests) {
// save current data (only after everything is initialized)
crunch_data();