1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 04:15:28 +03:00

Cleanup tabs, whitespace & comments.

This commit is contained in:
Dominic Clifton 2015-11-14 11:20:08 +00:00
parent d32ba714bf
commit 65762587ba

View file

@ -137,12 +137,8 @@ $(document).ready(function () {
});
});
PortHandler.initialize();
PortUsage.initialize();
});
@ -183,7 +179,6 @@ function onOpen(openInfo) {
}, 10000);
// request configuration data
MSP.send_message(MSP_codes.MSP_API_VERSION, false, false, function () {
GUI.log(chrome.i18n.getMessage('apiVersionReceived', [CONFIG.apiVersion]));
@ -257,14 +252,11 @@ function onConnect() {
$('#tabs ul.mode-disconnected').hide();
$('#tabs ul.mode-connected').show();
// if ("CLFL" == CONFIG.flightControllerIdentifier){
// not sure why this check was needed? disabling it to show sensors for all.
var sensor_state = $('#sensor-status');
sensor_state.show();
var port_picker = $('#portsinput');
port_picker.hide();
//}
}
function onClosed(result) {
@ -280,7 +272,6 @@ function onClosed(result) {
var port_picker = $('#portsinput');
port_picker.show();
/* */
var sensor_state = $('#sensor-status');
sensor_state.hide();
@ -317,17 +308,14 @@ function sensor_status(sensors_detected) {
} else {
$('.accel', e_sensor_status).removeClass('on');
$('.accicon', e_sensor_status).removeClass('active');
}
if (have_sensor(sensors_detected, 'gyro')) {
$('.gyro', e_sensor_status).addClass('on');
$('.gyroicon', e_sensor_status).addClass('active');
} else {
$('.gyro', e_sensor_status).removeClass('on');
$('.gyroicon', e_sensor_status).removeClass('active');
}
if (have_sensor(sensors_detected, 'baro')) {
@ -404,4 +392,3 @@ function bit_clear(num, bit) {
return num & ~(1 << bit);
}