From 11ae37f3b9f0599525b403750a39a40ae4bfbaf4 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Sun, 12 Nov 2023 18:56:33 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit aef44b1 --- gui/src/js/eventHandler.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gui/src/js/eventHandler.js b/gui/src/js/eventHandler.js index dc279e3b..0b11b8db 100644 --- a/gui/src/js/eventHandler.js +++ b/gui/src/js/eventHandler.js @@ -20,15 +20,13 @@ import { useSettingsStore } from "../store/settingsStore.js"; const settings = useSettingsStore(pinia); export function stateDispatcher(data) { - console.log(data) - - if (data["freedata-message"] == "state-change") { + console.log(data); + if (data["freedata-message"] == "state-change") { stateStore.channel_busy = data["channel_busy"]; stateStore.is_codec2_traffic = data["is_codec2_traffic"]; stateStore.is_modem_running = data["is_modem_running"]; - /* stateStore.rx_buffer_length = data["rx_buffer_length"];