aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-08-24 20:34:00 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-09-08 11:54:19 -0500
commitb2ed6640fd08d9600961a7cf9be8172e70f43926 (patch)
tree4b80045fbfe9d384079bf78a8f3219ad67c76155
parent4769632f2868851438fac0310386034ddc7cbf8d (diff)
downloaduhd-b2ed6640fd08d9600961a7cf9be8172e70f43926.tar.gz
uhd-b2ed6640fd08d9600961a7cf9be8172e70f43926.tar.bz2
uhd-b2ed6640fd08d9600961a7cf9be8172e70f43926.zip
radio: Improve log messages for non-implemented corrections
This modifies some log messages or exception strings when using auto-correction APIs that are not supported by the underlying device.
-rw-r--r--host/lib/rfnoc/radio_control_impl.cpp7
-rw-r--r--host/lib/usrp/x300/x300_radio_control.cpp6
2 files changed, 8 insertions, 5 deletions
diff --git a/host/lib/rfnoc/radio_control_impl.cpp b/host/lib/rfnoc/radio_control_impl.cpp
index 70b17efb3..c9b9b6bfe 100644
--- a/host/lib/rfnoc/radio_control_impl.cpp
+++ b/host/lib/rfnoc/radio_control_impl.cpp
@@ -781,13 +781,14 @@ void radio_control_impl::set_rx_dc_offset(const bool enb, size_t)
RFNOC_LOG_DEBUG("set_rx_dc_offset() has no effect on this radio");
if (enb) {
throw uhd::not_implemented_error(
- "set_rx_dc_offset() is not supported on this radio");
+ "set_rx_dc_offset(bool) is not supported on this radio");
}
}
void radio_control_impl::set_rx_dc_offset(const std::complex<double>&, size_t)
{
- throw uhd::not_implemented_error("set_rx_dc_offset() is not supported on this radio");
+ throw uhd::not_implemented_error(
+ "set_rx_dc_offset(complex) is not supported on this radio");
}
uhd::meta_range_t radio_control_impl::get_rx_dc_offset_range(size_t) const
@@ -800,7 +801,7 @@ void radio_control_impl::set_rx_iq_balance(const bool enb, size_t)
RFNOC_LOG_DEBUG("set_rx_iq_balance() has no effect on this radio");
if (enb) {
throw uhd::not_implemented_error(
- "set_rx_iq_balance() is not supported on this radio");
+ "set_rx_iq_balance(bool) is not supported on this radio");
}
}
diff --git a/host/lib/usrp/x300/x300_radio_control.cpp b/host/lib/usrp/x300/x300_radio_control.cpp
index 54f03fc6c..949650906 100644
--- a/host/lib/usrp/x300/x300_radio_control.cpp
+++ b/host/lib/usrp/x300/x300_radio_control.cpp
@@ -874,7 +874,8 @@ public:
if (get_tree()->exists(iq_balance_path)) {
get_tree()->access<bool>(iq_balance_path).set(enb);
} else {
- RFNOC_LOG_WARNING("Setting RX IQ Balance is not possible on this device.");
+ RFNOC_LOG_WARNING(
+ "Setting automatic RX IQ Balance is not possible on this device.");
}
}
@@ -884,7 +885,8 @@ public:
if (get_tree()->exists(iq_balance_path)) {
get_tree()->access<std::complex<double>>(iq_balance_path).set(correction);
} else {
- RFNOC_LOG_WARNING("Setting RX IQ Balance is not possible on this device.");
+ RFNOC_LOG_WARNING(
+ "Setting manual RX IQ Balance is not possible on this device.");
}
}