mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-02 21:04:45 +01:00
Made the code more useful to the user
maybe just yeeting out of the start function with no indication to the user is a bad idea?
This commit is contained in:
parent
90c26f8c1b
commit
9a3414b847
@ -330,7 +330,8 @@ 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);
|
||||||
if (LMS_Init(_this->openDev) != 0) {
|
if (err = LMS_Init(_this->openDev)) {
|
||||||
|
flog::error("Failed to re-initialize device ({})", err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user