Print 0 for channel rather than N/A, since we should probably always have a channel. Fixes #562

This commit is contained in:
Ian McEwen
2024-05-02 18:22:39 -07:00
parent fa5ede93ed
commit fb8db01427

View File

@@ -211,8 +211,8 @@ class MeshInterface:
row.update(
{
"SNR": formatFloat(node.get("snr"), 2, " dB"),
"Hops Away": node.get("hopsAway", "unknown"),
"Channel": node.get("channel"),
"Hops Away": node.get("hopsAway", "0/unknown"),
"Channel": node.get("channel", 0),
"LastHeard": getLH(node.get("lastHeard")),
"Since": getTimeAgo(node.get("lastHeard")),
}