Display Charts button even when no RF links (#593)

* display charts button even if no RF links

* adjust spacing
This commit is contained in:
Steve 2022-12-26 17:31:33 -07:00 committed by GitHub
parent cc58fd8a2e
commit 909e4fb765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -443,6 +443,7 @@ if config == "mesh" and not wifi_disabled then
local s, n = get_wifi_signal(wifi_iface)
if s == "none" then
col2[#col2] = col2[#col2] .. "no RF links"
col2[#col2] = col2[#col2] .. "&nbsp;&nbsp;&nbsp;<button type=button onClick='window.location=\"signal?realtime=1\"' title='Display continuous or archived signal strength on a chart'>Charts</button></nobr></td>"
else
col2[#col2] = col2[#col2] .. "<b>" .. s .. " | " .. n .. " | " .. math.abs(s - n) .. " dB</b>"
col2[#col2] = col2[#col2] .. "&nbsp;&nbsp;&nbsp;<button type=button onClick='window.location=\"signal?realtime=1\"' title='Display continuous or archived signal strength on a chart'>Charts</button></nobr></td>"