mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 09:22:44 +02:00
Update system.py
This commit is contained in:
+1
-3
@@ -2001,9 +2001,6 @@ async def retry_interface(nodeID):
|
||||
except Exception as e:
|
||||
logger.error(f"System: Error Opening interface{nodeID} on: {e}")
|
||||
|
||||
handleSentinel_spotted = []
|
||||
handleSentinel_loop = 0
|
||||
|
||||
handleSentinel_spotted = []
|
||||
handleSentinel_loop = 0
|
||||
async def handleSentinel(deviceID):
|
||||
@@ -2022,6 +2019,7 @@ async def handleSentinel(deviceID):
|
||||
node_id = node['id']
|
||||
distance = node['distance']
|
||||
if str(node_id) in sentryWatchList and str(node_id) not in sentryIgnoreList:
|
||||
|
||||
if distance > sentry_radius and str(node_id) in sentryWatchList:
|
||||
# Outside zone
|
||||
detectedNearby = f"{get_name_from_number(node_id, 'long', deviceID)}, {get_name_from_number(node_id, 'short', deviceID)}, {node_id}, {decimal_to_hex(node_id)} at {distance}m (OUTSIDE ZONE)"
|
||||
|
||||
Reference in New Issue
Block a user