Skip to content

Commit

Permalink
new design
Browse files Browse the repository at this point in the history
  • Loading branch information
HThuren committed Sep 9, 2023
1 parent 96df8dc commit caa7583
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/tabs/gps.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ gps.initialize = async function (callback) {

for (let i = 0; i < channels; i++) {
let rowContent = '';
let usedColor = '';
if (FC.GPS_DATA.chn[i] <= 6) {
rowContent += `<td>${gnssArray[FC.GPS_DATA.chn[i]]}</td>`;
} else {
Expand All @@ -266,6 +265,7 @@ gps.initialize = async function (callback) {

let quality = i18n.getMessage(qualityArray[FC.GPS_DATA.quality[i] & 0x7]);
let used = i18n.getMessage(usedArray[(FC.GPS_DATA.quality[i] & 0x8) >> 3]);
let usedColor = '';

// Add color to the text
// 2nd column: no signal = red, unusable = red, searching = red, locked = yellow and fully locked = green
Expand All @@ -277,7 +277,6 @@ gps.initialize = async function (callback) {
usedColor = 'notReady';
quality = `<span class="colorToggle locked">${quality}</span>`;
} else {
usedColor = '';
quality = `<span class="colorToggle">${quality}</span>`;
}
}
Expand Down

0 comments on commit caa7583

Please sign in to comment.