mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-03 13:24:46 +01:00
Fixed code style
This commit is contained in:
parent
6583104a96
commit
c0f3babc49
@ -228,8 +228,8 @@ private:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto err = static_cast<hackrf_error>(hackrf_open_by_serial(_this->selectedSerial.c_str(), &_this->openDev));
|
int err = hackrf_open_by_serial(_this->selectedSerial.c_str(), &_this->openDev);
|
||||||
if (err != hackrf_error::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,8 +257,8 @@ private:
|
|||||||
_this->running = false;
|
_this->running = false;
|
||||||
_this->stream.stopWriter();
|
_this->stream.stopWriter();
|
||||||
// TODO: Stream stop
|
// TODO: Stream stop
|
||||||
auto err = static_cast<hackrf_error>(hackrf_close(_this->openDev));
|
int err = hackrf_close(_this->openDev);
|
||||||
if (err != hackrf_error::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));
|
||||||
}
|
}
|
||||||
_this->stream.clearWriteStop();
|
_this->stream.clearWriteStop();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user