mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes to commit 24ad550
This commit is contained in:
parent
24ad55081c
commit
c6104a9dbc
2 changed files with 10 additions and 7 deletions
|
@ -165,17 +165,15 @@ export function processModemConfig(data) {
|
|||
}
|
||||
|
||||
export function processModemAudioDevices(data) {
|
||||
console.log(data)
|
||||
audioStore.inputDevices = data["in"];
|
||||
audioStore.outputDevices = data["out"];
|
||||
console.log(data);
|
||||
audioStore.inputDevices = data["in"];
|
||||
audioStore.outputDevices = data["out"];
|
||||
}
|
||||
|
||||
export function processModemSerialDevices(data) {
|
||||
|
||||
settings.serial_devices = 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?
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue