From e56f4490601a0286a1752b02bf485a04d103d25e Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Sun, 4 Jun 2023 12:34:16 -0400 Subject: [PATCH] Fixing merge issue. --- owrx/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/owrx/connection.py b/owrx/connection.py index e4a9603f..2fcba23e 100644 --- a/owrx/connection.py +++ b/owrx/connection.py @@ -303,9 +303,12 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient): magic = self.stack["magic_key"] key = params["key"] if "key" in params else None self.setSdr(profile[0]) + # If source not locked, or no magic key, or it matches... if not self.sdr.isLocked() or magic == "" or key == magic: + # Select a new profile self.sdr.activateProfile(profile[1]) else: + # Force update back to the current profile self.sdr.activateProfile(self.sdr.getProfileId(), force=True) elif message["type"] == "setfrequency": # If the magic key is set in the settings, only allow