Update system.py

This commit is contained in:
SpudGunMan
2025-10-20 20:06:39 -07:00
parent ad5c1c90da
commit f5af9f419a
+1 -3
View File
@@ -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)"