mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-04 08:51:04 +02:00
Update pong-bot.py
This commit is contained in:
+1
-2
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user