Update system.py

This commit is contained in:
SpudGunMan
2025-10-20 20:15:29 -07:00
parent a339570afe
commit ec9a1d88db
+1 -1
View File
@@ -2022,7 +2022,7 @@ async def handleSentinel(deviceID):
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)"
elif distance <= sentry_radius:
elif distance <= sentry_radius and str(node_id) not in sentryWatchList:
# Inside the 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 (INSIDE ZONE)"
break # Only alert on the first found