From b2ed6640fd08d9600961a7cf9be8172e70f43926 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 24 Aug 2021 20:34:00 +0200 Subject: 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. --- host/lib/rfnoc/radio_control_impl.cpp | 7 ++++--- host/lib/usrp/x300/x300_radio_control.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'host/lib') 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&, 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(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>(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."); } } -- cgit v1.2.3