Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-19 16:20:31 -07:00
parent 8bb14a050d
commit c2f21885a3
+1 -2
View File
@@ -130,10 +130,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"