mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes to commit 87f2cbf
This commit is contained in:
parent
87f2cbff2a
commit
abb4d0000d
1 changed files with 3 additions and 4 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue