From fb8db01427a02efa5ad7b70d274ee10c0d4ee740 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Thu, 2 May 2024 18:22:39 -0700 Subject: [PATCH] Print 0 for channel rather than N/A, since we should probably always have a channel. Fixes #562 --- meshtastic/mesh_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 743ff3e..9ffa983 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -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")), }