Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-19 14:37:39 -07:00
parent ec18fc3e33
commit 1381e79df5
+2 -2
View File
@@ -217,8 +217,8 @@ def get_node_location(number):
if number == node['num']:
print (node)
if 'latitude' in node:
lat = node['latitude']
lon = node['longitude']
lat = node['position']['latitude']
lon = node['position']['longitude']
position = (lat,lon)
print (f"{log_timestamp()} System: Found location data for {number}")
return position