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:
AlexandreRouma 2023-03-23 23:19:05 +01:00 committed by GitHub
parent 90c26f8c1b
commit 9a3414b847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,7 +330,8 @@ private:
if (err) {
LMS_Close(_this->openDev);
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;
}
}