stream init order of operations fix

This commit is contained in:
Charles J. Cliffe 2015-10-20 01:54:20 -04:00
parent ae906cbbba
commit 0af4de4e84
1 changed files with 1 additions and 1 deletions

View File

@ -68,9 +68,9 @@ void SDRThread::init() {
stream = device->setupStream(SOAPY_SDR_RX,"CF32", std::vector<size_t>(), devInfo->getStreamArgs());
wxGetApp().sdrEnumThreadNotify(SDREnumerator::SDR_ENUM_MESSAGE, std::string("Activating stream."));
device->activateStream(stream);
device->setSampleRate(SOAPY_SDR_RX,0,sampleRate.load());
device->setFrequency(SOAPY_SDR_RX,0,"RF",frequency - offset.load());
device->activateStream(stream);
SDRDeviceChannel *chan = devInfo->getRxChannel();
if (chan->hasCORR()) {
hasPPM.store(true);