[CodeFactor] Apply fixes to commit 87f2cbf

This commit is contained in:
codefactor-io 2023-11-11 19:47:05 +00:00
parent 87f2cbff2a
commit abb4d0000d
No known key found for this signature in database
GPG key ID: B66B2D63282C190F

View file

@ -20,7 +20,7 @@ import { useSettingsStore } from "../store/settingsStore.js";
const settings = useSettingsStore(pinia);
export function stateDispatcher(data) {
if (data["command"] == "modem_state") {
if (data["command"] == "modem_state") {
//console.log(data)
stateStore.rx_buffer_length = data["rx_buffer_length"];
@ -109,14 +109,13 @@ if (data["command"] == "modem_state") {
if (data["speed_list"].length > 0) {
prepareStatsDataForStore(data["speed_list"]);
}
}
}
}
export function eventDispatcher(data) {
data = JSON.parse(data);
// get ptt state as a first test
stateStore.ptt_state = data.ptt;
stateStore.ptt_state = data.ptt;
var message = "";
if (data["freedata"] == "modem-message") {