Skip to content

Commit

Permalink
Fixed to get correct temperatures for 6GHz bands.
Browse files Browse the repository at this point in the history
Fixed code to get the correct temperatures on the webGUI for the 6GHz bands on the BE-class routers.
  • Loading branch information
Martinski4GitHub committed Jun 25, 2024
1 parent af4a3a9 commit cc44d4f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scmerlin_www.asp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ else
}
/**----------------------------------------**/
/** Modified by Martinski W. [2024-Jun-01] **/
/** Modified by Martinski W. [2024-Jun-24] **/
/**----------------------------------------**/
function GetTemperatureValue (bandIDstr)
{
Expand All @@ -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; }
Expand All @@ -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; }
Expand All @@ -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; }
Expand All @@ -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; }
Expand All @@ -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;
Expand Down

0 comments on commit cc44d4f

Please sign in to comment.