From dcabfc0f500aa6555d0c77c65fb19fe595e94e66 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Sep 2025 19:00:37 -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 644bd9d..c9fd50f 100644 --- a/modules/system.py +++ b/modules/system.py @@ -764,7 +764,7 @@ priorVolcanoAlert = "" priorEmergencyAlert = "" priorWxAlert = "" def handleAlertBroadcast(deviceID=1): - global priorVolcanoAlert + global priorVolcanoAlert, priorEmergencyAlert, priorWxAlert alertUk = NO_ALERTS alertDe = NO_ALERTS alertFema = NO_ALERTS @@ -1009,7 +1009,7 @@ def consumeMetadata(packet, rxNode=0): logger.info(f"System: High Altitude {position_data['altitude']}m on Device: {rxNode} NodeID: {nodeID}") altFeet = round(position_data['altitude'] * 3.28084, 2) msg = f"🚀 High Altitude Detected! NodeID:{nodeID} Alt:{position_data['altitude']}m/{altFeet}ft" - + if highfly_check_openskynetwork: # check get_openskynetwork to see if the node is an aircraft flight_info = get_openskynetwork(position_data.get('latitude', 0), position_data.get('longitude', 0), position_data.get('altitude', 0))