diff --git a/mesh_bot.py b/mesh_bot.py index 28c2128..78f3f76 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -1598,6 +1598,9 @@ def onReceive(packet, interface): else: hop_count = hop_away + if hop == "" and hop_count > 0: + hop = f"{hop_count} Hop" if hop_count == 1 else f"{hop_count} Hops" + if hop_away == 0 and hop_limit == 0 and hop_start == 0: hop = "Last Hop" diff --git a/pong_bot.py b/pong_bot.py index 6738c5c..cdc3000 100755 --- a/pong_bot.py +++ b/pong_bot.py @@ -345,6 +345,9 @@ def onReceive(packet, interface): else: hop_count = hop_away + if hop == "" and hop_count > 0: + hop = f"{hop_count} Hop" if hop_count == 1 else f"{hop_count} Hops" + if hop_away == 0 and hop_limit == 0 and hop_start == 0: hop = "Last Hop"