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?
pull/1021/head
AlexandreRouma 2023-03-23 23:19:05 +01:00 zatwierdzone przez GitHub
rodzic 90c26f8c1b
commit 9a3414b847
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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;
}
}