Skip to content

Commit

Permalink
Remove more 0xDEADC0DE
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Jan 10, 2025
1 parent 32cf738 commit 2a64ce1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/js/tabs/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ configuration.initialize = function (callback) {
"Custom",
];

const orientation_gyro_e = $("select.gyroalign");
const orientation_mag_e = $("select.magalign");

const orientation_gyro_to_use_e = $("select.gyro_to_use");
Expand All @@ -139,25 +138,11 @@ configuration.initialize = function (callback) {
}

for (let i = 0; i < alignments.length; i++) {
orientation_gyro_e.append(`<option value="${i + 1}">${alignments[i]}</option>`);
orientation_mag_e.append(`<option value="${i + 1}">${alignments[i]}</option>`);
}

orientation_gyro_e.val(FC.SENSOR_ALIGNMENT.align_gyro);
orientation_mag_e.val(FC.SENSOR_ALIGNMENT.align_mag);

orientation_gyro_e.change(function () {
let value = parseInt($(this).val());

let newValue = undefined;
if (value !== FC.SENSOR_ALIGNMENT.align_gyro) {
newValue = $(this).find("option:selected").text();
}
self.analyticsChanges["GyroAlignment"] = newValue;

FC.SENSOR_ALIGNMENT.align_gyro = value;
});

orientation_mag_e.change(function () {
let value = parseInt($(this).val());

Expand Down

0 comments on commit 2a64ce1

Please sign in to comment.