From cd03cc56b4e6363bcc14e4e666380262176e1655 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 21 Oct 2025 14:24:24 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mesh_bot.py | 3 +++ pong_bot.py | 3 +++ 2 files changed, 6 insertions(+) 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"