From 108d0da9398c20790158c41c3870e037bfa5e5e2 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Thu, 23 May 2024 11:31:31 -0700 Subject: [PATCH] Fix fat-fingered display of lqm status on mesh page (#1215) --- files/www/cgi-bin/mesh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/www/cgi-bin/mesh b/files/www/cgi-bin/mesh index 1745b83d..deb0cbf0 100755 --- a/files/www/cgi-bin/mesh +++ b/files/www/cgi-bin/mesh @@ -761,7 +761,8 @@ do else lqmstatus = "idle" end - if (track.leaf == "minor" and track.rev_leaf == "major") or (track.leaf == "major" and track.rev_leaf == "minor") then + if (track.blocks.signal or track.blocks.distance or track.blocks.quality) and + ((track.leaf == "minor" and track.rev_leaf == "major") or (track.leaf == "major" and track.rev_leaf == "minor")) then lqmstatus = ac(lqmstatus, "leaf") end if track.snr then @@ -790,7 +791,7 @@ do end if nodeiface or waniface or lqmstatus then - c1 = c1 .. " (" .. ac(ac(nodeiface, waniface), x) .. ")" + c1 = c1 .. " (" .. ac(ac(nodeiface, waniface), lqmstatus) .. ")" end -- print node services if any