mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-26 12:27:51 +02:00
More bugfix
This commit is contained in:
@ -295,6 +295,7 @@ private:
|
||||
|
||||
static void start(void* ctx) {
|
||||
SoapyModule* _this = (SoapyModule*)ctx;
|
||||
if (_this->running) { return; }
|
||||
_this->dev = SoapySDR::Device::make(_this->devArgs);
|
||||
|
||||
_this->dev->setSampleRate(SOAPY_SDR_RX, _this->channelId, _this->sampleRate);
|
||||
@ -329,6 +330,7 @@ private:
|
||||
|
||||
static void stop(void* ctx) {
|
||||
SoapyModule* _this = (SoapyModule*)ctx;
|
||||
if (!_this->running) { return; }
|
||||
_this->running = false;
|
||||
_this->dev->deactivateStream(_this->devStream);
|
||||
_this->dev->closeStream(_this->devStream);
|
||||
|
Reference in New Issue
Block a user