Fixing merge issue.
This commit is contained in:
parent
c174cef20e
commit
42abee5bf6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue