Skip to content

Commit 894581c

Browse files
authored
Merge pull request #563 from ianmcorvidae/show-channel-0
Print 0 for channel rather than N/A, since we should probably always have a channel
2 parents fa5ede9 + fb8db01 commit 894581c

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)