mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
reduced logging
This commit is contained in:
parent
c5700e6e88
commit
1e640cc0c3
1 changed files with 4 additions and 4 deletions
|
@ -38,10 +38,10 @@ import {
|
|||
export async function loadAllData() {
|
||||
// TODO: Make this working
|
||||
let stateData = await getModemState();
|
||||
console.log(stateData);
|
||||
//console.log(stateData);
|
||||
|
||||
let radioData = await getRadioStatus();
|
||||
console.log(stateData);
|
||||
//console.log(stateData);
|
||||
|
||||
getRemote();
|
||||
getOverallHealth();
|
||||
|
@ -58,7 +58,7 @@ export function connectionFailed(endpoint, event) {
|
|||
export function stateDispatcher(data) {
|
||||
data = JSON.parse(data);
|
||||
//Leave commented when not needed, otherwise can lead to heap overflows due to the amount of data logged
|
||||
console.log(data);
|
||||
//console.log(data);
|
||||
if (data["type"] == "state-change" || data["type"] == "state") {
|
||||
stateStore.modem_connection = "connected";
|
||||
stateStore.busy_state = data["is_modem_busy"];
|
||||
|
@ -95,7 +95,7 @@ export function stateDispatcher(data) {
|
|||
|
||||
export function eventDispatcher(data) {
|
||||
data = JSON.parse(data);
|
||||
console.debug(data);
|
||||
//console.debug(data);
|
||||
|
||||
if (data["scatter"] !== undefined) {
|
||||
stateStore.scatter = JSON.parse(data["scatter"]);
|
||||
|
|
Loading…
Reference in a new issue