summaryrefslogtreecommitdiffstats
path: root/src/output/UHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-28 17:13:52 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-28 17:13:52 +0100
commitc3dbbec39aef32789aacb872c88801f0c5d15ef7 (patch)
treef935c3ae09246c4dbb714d1fd73a2f874925802f /src/output/UHD.cpp
parentaec2a980fc37bd5d28f06c8e48a98b51ae65ac32 (diff)
downloaddabmod-c3dbbec39aef32789aacb872c88801f0c5d15ef7.tar.gz
dabmod-c3dbbec39aef32789aacb872c88801f0c5d15ef7.tar.bz2
dabmod-c3dbbec39aef32789aacb872c88801f0c5d15ef7.zip
Catch all exceptions as const
Diffstat (limited to 'src/output/UHD.cpp')
-rw-r--r--src/output/UHD.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp
index 9358072..c6c500b 100644
--- a/src/output/UHD.cpp
+++ b/src/output/UHD.cpp
@@ -432,7 +432,7 @@ bool UHD::is_clk_source_ok(void) const
}
}
}
- catch (uhd::lookup_error &e) {
+ catch (const uhd::lookup_error &e) {
suppress_refclk_loss_check = true;
etiLog.log(warn, "OutputUHD: This USRP does not have mboard "
"sensor for ext clock loss. Check disabled.");
@@ -456,7 +456,7 @@ double UHD::get_temperature(void) const
try {
return std::round(m_usrp->get_tx_sensor("temp", 0).to_real());
}
- catch (uhd::lookup_error &e) {
+ catch (const uhd::lookup_error &e) {
return std::numeric_limits<double>::quiet_NaN();
}
}