Merge pull request #44 from dr-dolomite/main

Added NSA Fix
This commit is contained in:
Cameron Thompson
2024-05-08 20:03:20 -04:00
committed by GitHub

View File

@@ -780,7 +780,7 @@
this.signalPercentage
);
} else {
if (this.network_mode.match(/LTE/) != null) {
if (this.network_mode.match(/LTE/) != null && this.network_mode.match(/NR5G-NSA/) == null) {
let lte_bw_ul = lines[27].split(",")[10].replace(/"/g, "");
let lte_bw_dl = lines[27].split(",")[11].replace(/"/g, "");
@@ -909,7 +909,7 @@
// Get the RSRQ
this.rsrqLTE = lines[28].split(",")[12].replace(/"/g, "");
rsrq = parseInt(this.rsrqLTE);
let rsrq = parseInt(this.rsrqLTE);
// Calculate the RSRQ percentage
this.rsrqLTEPercentage = this.calculateRSRQPercentage(rsrq);
@@ -958,7 +958,7 @@
// Get the RSRQ NR
this.rsrqNR = lines[29].split(",")[6].replace(/"/g, "");
let rsrq = parseInt(this.rsrqNR);
rsrq = parseInt(this.rsrqNR);
// Calculate the RSRQ percentage
this.rsrqNRPercentage = this.calculateRSRQPercentage(rsrq);