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

fix style

This commit is contained in:
cTn 2014-08-14 17:00:32 +02:00
parent d7810e1bb6
commit cc8e53205d
4 changed files with 84 additions and 82 deletions

View file

@ -193,8 +193,9 @@ function configuration_upload() {
// should be reworked in the future, so the same code won't be cloned over !!! // should be reworked in the future, so the same code won't be cloned over !!!
// PID section // PID section
var PID_buffer_out = new Array(); var PID_buffer_out = new Array(),
var PID_buffer_needle = 0; PID_buffer_needle = 0;
for (var i = 0; i < PIDs.length; i++) { for (var i = 0; i < PIDs.length; i++) {
switch (i) { switch (i) {
case 0: case 0:
@ -220,6 +221,7 @@ function configuration_upload() {
PID_buffer_out[PID_buffer_needle + 2] = parseInt(PIDs[i][2] * 1000); PID_buffer_out[PID_buffer_needle + 2] = parseInt(PIDs[i][2] * 1000);
break; break;
} }
PID_buffer_needle += 3; PID_buffer_needle += 3;
} }
@ -243,9 +245,9 @@ function configuration_upload() {
function aux() { function aux() {
// AUX section // AUX section
var AUX_val_buffer_out = new Array(); var AUX_val_buffer_out = new Array(),
needle = 0;
var needle = 0;
for (var i = 0; i < AUX_CONFIG_values.length; i++) { for (var i = 0; i < AUX_CONFIG_values.length; i++) {
AUX_val_buffer_out[needle++] = lowByte(AUX_CONFIG_values[i]); AUX_val_buffer_out[needle++] = lowByte(AUX_CONFIG_values[i]);
AUX_val_buffer_out[needle++] = highByte(AUX_CONFIG_values[i]); AUX_val_buffer_out[needle++] = highByte(AUX_CONFIG_values[i]);

View file

@ -61,7 +61,7 @@ $(document).ready(function () {
// auto-connect // auto-connect
chrome.storage.local.get('auto_connect', function (result) { chrome.storage.local.get('auto_connect', function (result) {
if (!result.auto_connect || result.auto_connect) { if (result.auto_connect === 'undefined' || result.auto_connect) {
// default or enabled by user // default or enabled by user
GUI.auto_connect = true; GUI.auto_connect = true;