From dc44bfa53ea0a2854ce640d700af8543fc55c795 Mon Sep 17 00:00:00 2001 From: Martin Anderseck Date: Thu, 9 Sep 2021 16:11:47 +0200 Subject: X300: Fix error message for wrong reference frequency Error message was not adapted when support for 11.52 MHz and 23.04 MHz references was added. Fixing this. --- host/lib/usrp/x300/x300_clock_ctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/x300/x300_clock_ctrl.cpp b/host/lib/usrp/x300/x300_clock_ctrl.cpp index b7b8f272c..004c5df3c 100644 --- a/host/lib/usrp/x300/x300_clock_ctrl.cpp +++ b/host/lib/usrp/x300/x300_clock_ctrl.cpp @@ -638,7 +638,8 @@ private: } else { throw uhd::runtime_error( str(boost::format("Invalid system reference rate: %.2f MHz.\nValid " - "reference frequencies are: 10 MHz, 30.72 MHz.") + "reference frequencies are: 10 MHz, 11.52 MHz, " + "23.04 MHz, 30.72 MHz.") % (_system_ref_rate / 1e6))); } UHD_ASSERT_THROW(clocking_mode != INVALID); -- cgit v1.2.3