From 3631743a29a58a49373221a5c6bd3d09ac1fdbf5 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Mon, 2 Feb 2026 18:28:20 +0300 Subject: [PATCH] Drop messages from another systems in pyflix We shouldn't pass messages where system id != our system id. This change may be useful when there are many drones in one network. --- tools/pyflix/flix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pyflix/flix.py b/tools/pyflix/flix.py index a12d25f..757ebfa 100644 --- a/tools/pyflix/flix.py +++ b/tools/pyflix/flix.py @@ -138,7 +138,7 @@ class Flix: while True: try: msg: Optional[mavlink.MAVLink_message] = self.connection.recv_match(blocking=True) - if msg is None: + if msg is None or msg.get_srcSystem() != self.system_id: continue self._connected() msg_dict = msg.to_dict()