Skip to content

Commit

Permalink
Merge pull request #718 from ianmcorvidae/show-unknown-more-nicely
Browse files Browse the repository at this point in the history
Display unknown hop count as '?', and header as just 'Hops'
  • Loading branch information
ianmcorvidae authored Dec 21, 2024
2 parents 7c7170a + f950eca commit a765bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshtastic/mesh_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def getTimeAgo(ts) -> Optional[str]:
row.update(
{
"SNR": formatFloat(node.get("snr"), 2, " dB"),
"Hops Away": node.get("hopsAway", "0/unknown"),
"Hops": node.get("hopsAway", "?"),
"Channel": node.get("channel", 0),
"LastHeard": getLH(node.get("lastHeard")),
"Since": getTimeAgo(node.get("lastHeard")),
Expand Down

0 comments on commit a765bcc

Please sign in to comment.