Skip to content

Commit fb8db01

Browse files
committed
Print 0 for channel rather than N/A, since we should probably always have a channel. Fixes #562
1 parent fa5ede9 commit fb8db01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

meshtastic/mesh_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ def getTimeAgo(ts) -> Optional[str]:
211211
row.update(
212212
{
213213
"SNR": formatFloat(node.get("snr"), 2, " dB"),
214-
"Hops Away": node.get("hopsAway", "unknown"),
215-
"Channel": node.get("channel"),
214+
"Hops Away": node.get("hopsAway", "0/unknown"),
215+
"Channel": node.get("channel", 0),
216216
"LastHeard": getLH(node.get("lastHeard")),
217217
"Since": getTimeAgo(node.get("lastHeard")),
218218
}

0 commit comments

Comments
 (0)