mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
05f631e4b4
commit
4fe9f82b40
1 changed files with 11 additions and 16 deletions
|
@ -116,28 +116,23 @@ export function processModemConfig(data) {
|
|||
// For now its a hardcoded structure until we found a better way
|
||||
|
||||
console.log(data);
|
||||
// chatGPT function for iterating through all items and asserting them to a function
|
||||
// chatGPT function for iterating through all items and asserting them to a function
|
||||
for (const category in data) {
|
||||
if (data.hasOwnProperty(category)) {
|
||||
for (const setting in data[category]) {
|
||||
if (data[category].hasOwnProperty(setting)) {
|
||||
// Create a variable name combining the category and setting name
|
||||
const variableName = setting;
|
||||
// Assign the value to the variable
|
||||
settings[variableName] = data[category][setting];
|
||||
for (const setting in data[category]) {
|
||||
if (data[category].hasOwnProperty(setting)) {
|
||||
// Create a variable name combining the category and setting name
|
||||
const variableName = setting;
|
||||
// Assign the value to the variable
|
||||
settings[variableName] = data[category][setting];
|
||||
|
||||
console.log(variableName + ': ' + settings[variableName]);
|
||||
}
|
||||
console.log(variableName + ": " + settings[variableName]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
/*
|
||||
// STATION SETTINGS
|
||||
// Extract the callsign and SSID
|
||||
if (data.STATION.mycall.includes("-")) {
|
||||
|
|
Loading…
Reference in a new issue