Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-18 22:00:32 -07:00
parent 784c896203
commit 528d145ff3
+5 -3
View File
@@ -173,9 +173,11 @@ def get_node_list():
if interface.nodes:
for node in interface.nodes.values():
#limit list to the last 5 nodes
node_list.append(get_name_from_number(node['num']))
if len(node_list) > 4:
#limit list to the last 5 nodes, and ignore own node at 0
if node['num'] != 0:
node_list.append(get_name_from_number(node['num']))
if len(node_list) > 5:
break
return node_list