diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-01-19 20:31:15 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-01-19 20:31:15 +0100 |
commit | adb20365db6dec7c7a4e23cd8b2feb78e83a7a33 (patch) | |
tree | 07b8ba0fdcd0ed1e5308d73852fc7bb5ce0b4770 /host/lib/usrp/common/ad9361_ctrl.cpp | |
parent | 9e6ff291b464f7ae7cbc7abfe29b34550badeb74 (diff) | |
parent | 2a49dbbc8acdd601eb4d541b43bcfa6724333785 (diff) | |
download | uhd-adb20365db6dec7c7a4e23cd8b2feb78e83a7a33.tar.gz uhd-adb20365db6dec7c7a4e23cd8b2feb78e83a7a33.tar.bz2 uhd-adb20365db6dec7c7a4e23cd8b2feb78e83a7a33.zip |
Merge branch 'maint'
Conflicts:
host/include/uhd/types/CMakeLists.txt
Diffstat (limited to 'host/lib/usrp/common/ad9361_ctrl.cpp')
-rw-r--r-- | host/lib/usrp/common/ad9361_ctrl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/usrp/common/ad9361_ctrl.cpp b/host/lib/usrp/common/ad9361_ctrl.cpp index f94536ed9..85510530d 100644 --- a/host/lib/usrp/common/ad9361_ctrl.cpp +++ b/host/lib/usrp/common/ad9361_ctrl.cpp @@ -123,6 +123,13 @@ public: const meta_range_t clock_rate_range = ad9361_ctrl::get_clock_rate_range(); const double clipped_rate = clock_rate_range.clip(rate); + if (clipped_rate != rate) { + UHD_MSG(warning) << boost::format( + "The requested master_clock_rate %f MHz exceeds bounds imposed by UHD.\n" + "The master_clock_rate has been forced to %f MHz.\n" + ) % (rate/1e6) % (clipped_rate/1e6) << std::endl; + } + return _device.set_clock_rate(clipped_rate); } |