mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
Merge pull request #1021 from sergeyvfx/fix_start_crash
Fix crash in LimeSDR start when the device is disconnected
This commit is contained in:
commit
d3d245992d
@ -330,7 +330,10 @@ private:
|
||||
if (err) {
|
||||
LMS_Close(_this->openDev);
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user