update to match pycsdr chaanges

This commit is contained in:
Jakob Ketterl
2021-07-24 18:50:30 +02:00
parent aeca8265c3
commit 7d7cec1ec3
3 changed files with 64 additions and 43 deletions

View File

@ -252,13 +252,13 @@ class SdrSource(ABC):
def _getTcpSource(self):
with self.modificationLock:
if self.tcpSource is None:
self.tcpSource = TcpSource(self.port)
self.tcpSource = TcpSource(self.port, Format.COMPLEX_FLOAT)
return self.tcpSource
def getBuffer(self):
if self.buffer is None:
self.buffer = Buffer(Format.COMPLEX_FLOAT)
self._getTcpSource().setOutput(self.buffer)
self._getTcpSource().setWriter(self.buffer)
return self.buffer
def getCommandValues(self):