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;
|
||||
// Assign the value to the variable
|
||||
if (variableName == "mycall") {
|
||||
|
||||
let mycall = data[category][setting];
|
||||
if (mycall.includes("-")) {
|
||||
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.myssid = 0; // Default SSID if not provided
|
||||
}
|
||||
|
||||
} else {
|
||||
settings[variableName] = data[category][setting];
|
||||
}
|
||||
console.log(variableName + ': ' + settings[variableName]);
|
||||
console.log(variableName + ": " + settings[variableName]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
// STATION SETTINGS
|
||||
// Extract the callsign and SSID
|
||||
|
|
Loading…
Reference in a new issue