cleaned unneeded logs on index and fixed cell lock on network settings

This commit is contained in:
Russel Yasol
2024-05-08 17:35:32 +08:00
parent 5b30e2d3d1
commit a6203a585d
2 changed files with 6 additions and 10 deletions

View File

@@ -557,7 +557,7 @@
internetConnection: "Disconnected",
lastUpdate: new Date().toLocaleString(),
newRefreshRate: null,
refreshRate: 30,
refreshRate: 5,
intervalId: null,
fetchNetworkInfo() {
this.atcmd =
@@ -639,7 +639,6 @@
) {
networkMode2 = lines[27].split(",")[2].replace(/"/g, "");
networkMode2 = networkMode2.split(",")[0].trim();
console.log(networkMode2);
}
if (networkMode2 !== "LTE") {
@@ -660,7 +659,6 @@
}
}
console.log(networkMode2, networkMode3);
// Check if networkMode3 is not empty
if (networkMode3 !== undefined) {
this.network_mode = networkMode2 + ", " + networkMode3;

View File

@@ -793,11 +793,10 @@
}
// Construct the AT command using the valid pairs
let atcmd = `+QNWLOCK="common/4g",${cellNum},${validPairs
let atcmd = `AT+QNWLOCK="common/4g",${cellNum},${validPairs
.map((pair) => `${pair.earfcn},${pair.pci}`)
.join(",")}`;
atcmd = "AT+CFUN=0;" + atcmd + ";+CFUN=1";
// Mock data
this.showModal = true;
@@ -830,8 +829,7 @@
}
// Construct the AT command using the valid pairs
let atcmd = `+QNWLOCK="common/5g",${earfcn},${pci},${scs},${band}`;
atcmd = "AT+CFUN=0;" + atcmd + ";+CFUN=1";
let atcmd = `AT+QNWLOCK="common/5g",${earfcn},${pci},${scs},${band}`;
// Mock data
this.showModal = true;
@@ -850,7 +848,7 @@
},
cellLockDisableLTE() {
// Send the atcmd command to reset the locked bands
const atcmd = 'AT+CFUN=0;+QNWLOCK="common/4g,0;+CFUN=1"';
const atcmd = 'AT+QNWLOCK="common/4g,0"';
this.showModal = true;
this.sendATcommand(atcmd);
@@ -866,7 +864,7 @@
},
cellLockDisableNR() {
// Send the atcmd command to reset the locked bands
const atcmd = 'AT+CFUN=0;+QNWLOCK="common/5g,0;+CFUN=1"';
const atcmd = 'AT+QNWLOCK="common/5g,0"';
this.showModal = true;