don't send bookmarks if the parameters are not available

This commit is contained in:
Jakob Ketterl 2021-04-09 18:29:08 +02:00
parent bbad34cec3
commit d18a4c83ac

View File

@ -212,7 +212,7 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
srh = configProps["samp_rate"] / 2
frequencyRange = (cf - srh, cf + srh)
self.bookmarkSub = Bookmarks.getSharedInstance().subscribe(frequencyRange, sendBookmarks)
sendBookmarks()
sendBookmarks()
self.configSubs.append(configProps.wire(sendConfig))
self.configSubs.append(stack.filter("center_freq", "samp_rate").wire(updateBookmarkSubscription))