aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2015-01-23 10:17:20 -0800
committerAshish Chaudhari <ashish@ettus.com>2015-01-23 10:17:20 -0800
commite36f0482e71d5df6219c66bfb0653f6872a1b586 (patch)
treee72740c88dd77f0c2608bc0030e80f985e8f489c /host/lib/usrp
parent44774335f6cd62f7955c36e45e9475f5599f4f14 (diff)
downloaduhd-e36f0482e71d5df6219c66bfb0653f6872a1b586.tar.gz
uhd-e36f0482e71d5df6219c66bfb0653f6872a1b586.tar.bz2
uhd-e36f0482e71d5df6219c66bfb0653f6872a1b586.zip
fixup! ad9361: More check for interpolation/decim ratios
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/common/ad9361_driver/ad9361_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
index afaa4a1fb..3ce655c9b 100644
--- a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
+++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
@@ -177,7 +177,7 @@ void ad9361_device_t::_setup_tx_fir(size_t num_taps, boost::int32_t interpolatio
if (not (interpolation == 1 or interpolation == 2 or interpolation == 4)) {
throw uhd::runtime_error("[ad9361_device_t] Invalid Tx FIR interpolation.");
}
- if (interpolation == 1 and num_t > 64) {
+ if (interpolation == 1 and num_taps > 64) {
throw uhd::runtime_error("[ad9361_device_t] Too many Tx FIR taps for interpolation value.");
}
boost::scoped_array<boost::uint16_t> coeffs(new boost::uint16_t[num_taps]);