mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-03-28 17:32:36 +01:00
Update system.py
This commit is contained in:
@@ -885,6 +885,7 @@ async def handleSentinel(deviceID=1):
|
||||
# async function for possibly demanding back location data
|
||||
enemySpotted = ""
|
||||
closest_nodes = get_closest_nodes(deviceID)
|
||||
print(f"Closest Nodes: {closest_nodes}")
|
||||
if closest_nodes != ERROR_FETCHING_DATA and closest_nodes:
|
||||
if closest_nodes[0]['id'] is not None:
|
||||
enemySpotted = get_name_from_number(closest_nodes[0]['id'], 'long', 1)
|
||||
|
||||
Reference in New Issue
Block a user