From 93fc6547b88707a4b9f64919c94ca1560d628072 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 14 Oct 2025 10:46:30 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system.py b/modules/system.py index b48620b..2606d46 100644 --- a/modules/system.py +++ b/modules/system.py @@ -1422,8 +1422,8 @@ def consumeMetadata(packet, rxNode=0, channel=-1): if flight_info and NO_ALERTS not in flight_info and ERROR_FETCHING_DATA not in flight_info: msg += f"\n✈️Detected near:\n{flight_info}" send_message(msg, highfly_channel, 0, highfly_interface) - # Keep the positionMetadata dictionary at a maximum size of 20 - if len(positionMetadata) > 20: + # Keep the positionMetadata dictionary at a maximum size + if len(positionMetadata) > MAX_SEEN_NODES: # Remove the oldest entry oldest_nodeID = next(iter(positionMetadata)) del positionMetadata[oldest_nodeID]