mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-10 20:10:05 +00:00
Catch all exceptions
This commit is contained in:
parent
df1314945f
commit
126421f847
@ -281,10 +281,19 @@ Adrv9361z7035SignalSourceFPGA::~Adrv9361z7035SignalSourceFPGA()
|
||||
if (rf_shutdown_)
|
||||
{
|
||||
std::cout << "* AD9361 Disabling RX streaming channels\n";
|
||||
try
|
||||
{
|
||||
if (!disable_ad9361_rx_local())
|
||||
{
|
||||
LOG(WARNING) << "Problem shutting down the AD9361 RX channels";
|
||||
}
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
LOG(WARNING) << "Problem shutting down the AD9361 RX channels: " << e.what();
|
||||
std::cerr << "Problem shutting down the AD9361 RX channels: " << e.what() << '\n';
|
||||
}
|
||||
|
||||
if (enable_dds_lo_)
|
||||
{
|
||||
try
|
||||
|
@ -241,11 +241,18 @@ Fmcomms5SignalSourceFPGA::~Fmcomms5SignalSourceFPGA()
|
||||
if (rf_shutdown_)
|
||||
{
|
||||
std::cout << "* Disabling RX streaming channels\n";
|
||||
try
|
||||
{
|
||||
if (!disable_ad9361_rx_local())
|
||||
{
|
||||
LOG(WARNING) << "Problem shutting down the AD9361 RX channels";
|
||||
}
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << "Problem shutting down the AD9361 RX channels: " << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
// disable buffer overflow checking and buffer monitoring
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user