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

@@ -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;