[CodeFactor] Apply fixes to commit 24ad550

This commit is contained in:
codefactor-io 2023-11-09 13:15:29 +00:00
parent 24ad55081c
commit c6104a9dbc
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
2 changed files with 10 additions and 7 deletions

View file

@ -165,17 +165,15 @@ export function processModemConfig(data) {
}
export function processModemAudioDevices(data) {
console.log(data)
console.log(data);
audioStore.inputDevices = data["in"];
audioStore.outputDevices = data["out"];
}
export function processModemSerialDevices(data) {
settings.serial_devices = data;
}
export function getModemConfigAsJSON() {
// create json output from settings
// TODO Can we make this more dynamic? Maybe using a settings object?

View file

@ -20,7 +20,12 @@ export const useAudioStore = defineStore("audioStore", () => {
for (var key in inputDevices.value) {
let selected = "";
console.log("AUDIO DEVICES: " + inputDevices.value[key]["id"] + " | " + settings.rx_audio)
console.log(
"AUDIO DEVICES: " +
inputDevices.value[key]["id"] +
" | " +
settings.rx_audio,
);
if (inputDevices.value[key]["id"] == settings.rx_audio) {
selected = "selected";
} else {