From cc44d4f71232ed28ea87824c46d0713e56760564 Mon Sep 17 00:00:00 2001 From: Martinski <119833648+Martinski4GitHub@users.noreply.github.com> Date: Tue, 25 Jun 2024 00:42:27 -0700 Subject: [PATCH] Fixed to get correct temperatures for 6GHz bands. Fixed code to get the correct temperatures on the webGUI for the 6GHz bands on the BE-class routers. --- scmerlin_www.asp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scmerlin_www.asp b/scmerlin_www.asp index 70dc5be..f7ac4ce 100644 --- a/scmerlin_www.asp +++ b/scmerlin_www.asp @@ -169,7 +169,7 @@ else } /**----------------------------------------**/ -/** Modified by Martinski W. [2024-Jun-01] **/ +/** Modified by Martinski W. [2024-Jun-24] **/ /**----------------------------------------**/ function GetTemperatureValue (bandIDstr) { @@ -182,7 +182,7 @@ function GetTemperatureValue (bandIDstr) productid == 'GT-BE98_PRO' || productid == 'GT-AXE16000') { - if (typeof curr_coreTmp_wl3_raw != 'undefined' && curr_coreTmp_wl3_raw != null) + if (typeof curr_coreTmp_wl3_raw != 'undefined') { temperatureVal = curr_coreTmp_wl3_raw; } else if (typeof curr_coreTmp_3_raw != 'undefined' && curr_coreTmp_3_raw != null) { temperatureVal = curr_coreTmp_3_raw; } @@ -200,7 +200,7 @@ function GetTemperatureValue (bandIDstr) productid == 'GT-BE98_PRO' || productid == 'GT-AXE16000') { - if (typeof curr_coreTmp_wl0_raw != 'undefined' && curr_coreTmp_wl0_raw != null) + if (typeof curr_coreTmp_wl0_raw != 'undefined') { temperatureVal = curr_coreTmp_wl0_raw; } else if (typeof curr_coreTmp_0_raw != 'undefined' && curr_coreTmp_0_raw != null) { temperatureVal = curr_coreTmp_0_raw; } @@ -217,7 +217,7 @@ function GetTemperatureValue (bandIDstr) if (productid == 'GT-BE98' || productid == 'GT-AXE16000') { - if (typeof curr_coreTmp_wl1_raw != 'undefined' && curr_coreTmp_wl1_raw != null) + if (typeof curr_coreTmp_wl1_raw != 'undefined') { temperatureVal = curr_coreTmp_wl1_raw; } else if (typeof curr_coreTmp_1_raw != 'undefined' && curr_coreTmp_1_raw != null) { temperatureVal = curr_coreTmp_1_raw; } @@ -234,7 +234,7 @@ function GetTemperatureValue (bandIDstr) case '6GHz_1': if (productid == 'GT-BE98_PRO') { - if (typeof curr_coreTmp_wl1_raw != 'undefined' && curr_coreTmp_wl1_raw != null) + if (typeof curr_coreTmp_wl1_raw != 'undefined') { temperatureVal = curr_coreTmp_wl1_raw; } else if (typeof curr_coreTmp_1_raw != 'undefined' && curr_coreTmp_1_raw != null) { temperatureVal = curr_coreTmp_1_raw; } @@ -249,7 +249,7 @@ function GetTemperatureValue (bandIDstr) case '6GHz_2': if (productid == 'GT-BE98_PRO') { - if (typeof curr_coreTmp_wl2_raw != 'undefined' && curr_coreTmp_wl2_raw != null) + if (typeof curr_coreTmp_wl2_raw != 'undefined') { temperatureVal = curr_coreTmp_wl2_raw; } } break;