kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
Merge pull request #1021 from sergeyvfx/fix_start_crash
Fix crash in LimeSDR start when the device is disconnectednoise_reduction
commit
d3d245992d
|
@ -330,7 +330,10 @@ private:
|
||||||
if (err) {
|
if (err) {
|
||||||
LMS_Close(_this->openDev);
|
LMS_Close(_this->openDev);
|
||||||
LMS_Open(&_this->openDev, _this->devList[_this->devId], NULL);
|
LMS_Open(&_this->openDev, _this->devList[_this->devId], NULL);
|
||||||
LMS_Init(_this->openDev);
|
if (err = LMS_Init(_this->openDev)) {
|
||||||
|
flog::error("Failed to re-initialize device ({})", err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
flog::warn("Channel count: {0}", LMS_GetNumChannels(_this->openDev, false));
|
flog::warn("Channel count: {0}", LMS_GetNumChannels(_this->openDev, false));
|
||||||
|
|
Ładowanie…
Reference in New Issue