[CodeFactor] Apply fixes to commit aef44b1

This commit is contained in:
codefactor-io 2023-11-12 18:56:33 +00:00
parent aef44b1536
commit 11ae37f3b9
No known key found for this signature in database
GPG key ID: B66B2D63282C190F

View file

@ -20,15 +20,13 @@ import { useSettingsStore } from "../store/settingsStore.js";
const settings = useSettingsStore(pinia); const settings = useSettingsStore(pinia);
export function stateDispatcher(data) { export function stateDispatcher(data) {
console.log(data) console.log(data);
if (data["freedata-message"] == "state-change") { if (data["freedata-message"] == "state-change") {
stateStore.channel_busy = data["channel_busy"]; stateStore.channel_busy = data["channel_busy"];
stateStore.is_codec2_traffic = data["is_codec2_traffic"]; stateStore.is_codec2_traffic = data["is_codec2_traffic"];
stateStore.is_modem_running = data["is_modem_running"]; stateStore.is_modem_running = data["is_modem_running"];
/* /*
stateStore.rx_buffer_length = data["rx_buffer_length"]; stateStore.rx_buffer_length = data["rx_buffer_length"];