mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-06 08:53:27 +02:00
Update system.py
This commit is contained in:
+1
-1
@@ -980,7 +980,7 @@ def consumeMetadata(packet, rxNode=0):
|
||||
positionMetadata[nodeID][key] = position_data.get(key, 0)
|
||||
|
||||
# if altitude is over 2000 send a log and message for high-flying nodes
|
||||
if position_data.get('altitude', 0) > 2000 and highfly_enabled:
|
||||
if position_data.get('altitude', 0) > highfly_altitude and highfly_enabled:
|
||||
logger.warning(f"System: High Altitude {position_data['altitude']}m on Device: {rxNode} NodeID: {nodeID}")
|
||||
send_message(f"High Altitude {position_data['altitude']}m on Device: {rxNode} NodeID: {nodeID}", secure_channel, 0, rxNode)
|
||||
time.sleep(responseDelay)
|
||||
|
||||
Reference in New Issue
Block a user