mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 02:18:30 +01:00
fixed error
This commit is contained in:
parent
6ef58f2e7c
commit
e6293b6435
@ -228,7 +228,7 @@ private:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int err = hackrf_open_by_serial(_this->selectedSerial.c_str(), &_this->openDev);
|
hackrf_error err = hackrf_open_by_serial(_this->selectedSerial.c_str(), &_this->openDev);
|
||||||
if (err != HACKRF_SUCCESS) {
|
if (err != HACKRF_SUCCESS) {
|
||||||
spdlog::error("Could not open HackRF {0}: {1}", _this->selectedSerial, hackrf_error_name(err));
|
spdlog::error("Could not open HackRF {0}: {1}", _this->selectedSerial, hackrf_error_name(err));
|
||||||
return;
|
return;
|
||||||
@ -257,7 +257,7 @@ private:
|
|||||||
_this->running = false;
|
_this->running = false;
|
||||||
_this->stream.stopWriter();
|
_this->stream.stopWriter();
|
||||||
// TODO: Stream stop
|
// TODO: Stream stop
|
||||||
int err = hackrf_close(_this->openDev);
|
hackrf_error err = hackrf_close(_this->openDev);
|
||||||
if (err != HACKRF_SUCCESS) {
|
if (err != HACKRF_SUCCESS) {
|
||||||
spdlog::error("Could not close HackRF {0}: {1}", _this->selectedSerial, hackrf_error_name(err));
|
spdlog::error("Could not close HackRF {0}: {1}", _this->selectedSerial, hackrf_error_name(err));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user