Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-19 00:16:45 -07:00
parent 3f0cced459
commit 05a1d43bb6
+2 -1
View File
@@ -189,12 +189,13 @@ def get_node_list():
#ignore own
if node['num'] != myNodeNum:
node_name = get_name_from_number(node['num'])
try:
last_heard = node['lastHeard']
except Exception as e:
print(f"System: Error getting node list: {e}")
last_heard = 0
item = (node_name,last_heard)
node_list.append(item)
#return only the last 5 nodes
return node_list[:5]