Update main.cpp

This commit is contained in:
AlexandreRouma 2021-08-30 03:06:40 +02:00 committed by GitHub
parent 49fd49b4d6
commit fa75a3a176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,11 +297,7 @@ private:
SoapyModule* _this = (SoapyModule*)ctx;
if (_this->running) { return; }
if (_this->devId < 0) {
_this->refresh();
_this->selectDevice(config.conf["device"]);
if (_this->devId < 0) {
return;
}
return;
}
_this->dev = SoapySDR::Device::make(_this->devArgs);