Update pong-bot.py

This commit is contained in:
SpudGunMan
2024-06-20 11:44:02 -07:00
parent cfb13624ab
commit 4892a680f1
+1 -2
View File
@@ -111,10 +111,9 @@ def onReceive(packet, interface):
# set hop to Direct if the message was sent directly otherwise set the hop count
if hop_away > 0:
hop_count = hop_away
print (f"Using hopsAway: {hop_count}")
else:
hop_count = hop_start - hop_limit
print (f"calculated hop count: {hop_start} - {hop_limit} = {hop_count}")
#print (f"calculated hop count: {hop_start} - {hop_limit} = {hop_count}")
hop = f"{hop_count} hops"