mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes to commit 476597e
This commit is contained in:
parent
476597e792
commit
498a5c2e3c
|
@ -125,7 +125,6 @@ export function processModemConfig(data) {
|
||||||
const variableName = setting;
|
const variableName = setting;
|
||||||
// Assign the value to the variable
|
// Assign the value to the variable
|
||||||
if (variableName == "mycall") {
|
if (variableName == "mycall") {
|
||||||
|
|
||||||
let mycall = data[category][setting];
|
let mycall = data[category][setting];
|
||||||
if (mycall.includes("-")) {
|
if (mycall.includes("-")) {
|
||||||
const splittedCallsign = mycall.split("-");
|
const splittedCallsign = mycall.split("-");
|
||||||
|
@ -135,21 +134,15 @@ export function processModemConfig(data) {
|
||||||
settings.mycall = mycall; // Use the original mycall if no SSID is present
|
settings.mycall = mycall; // Use the original mycall if no SSID is present
|
||||||
settings.myssid = 0; // Default SSID if not provided
|
settings.myssid = 0; // Default SSID if not provided
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
settings[variableName] = data[category][setting];
|
settings[variableName] = data[category][setting];
|
||||||
}
|
}
|
||||||
console.log(variableName + ': ' + settings[variableName]);
|
console.log(variableName + ": " + settings[variableName]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// STATION SETTINGS
|
// STATION SETTINGS
|
||||||
// Extract the callsign and SSID
|
// Extract the callsign and SSID
|
||||||
|
|
Loading…
Reference in a new issue