diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-17 09:52:43 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-17 09:52:43 -0700 |
commit | d20595a3fe9ba864d824c160c3db39fc7a3d1e7c (patch) | |
tree | 4331866545f1ee5394247b724cbd6173ed64e0f0 /host/lib/usrp/usrp2/usrp2_impl.cpp | |
parent | 695dd535d5a7419f467598a90c51c7e0f3d611e5 (diff) | |
download | uhd-d20595a3fe9ba864d824c160c3db39fc7a3d1e7c.tar.gz uhd-d20595a3fe9ba864d824c160c3db39fc7a3d1e7c.tar.bz2 uhd-d20595a3fe9ba864d824c160c3db39fc7a3d1e7c.zip |
calculate max samples per packet using otw type
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 2b7bdeea2..3b7156802 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -211,11 +211,11 @@ void usrp2_impl::get(const wax::obj &key_, wax::obj &val){ return; case DEVICE_PROP_MAX_RX_SAMPLES: - val = size_t(_max_rx_samples_per_packet); + val = max_rx_samps_per_packet(); return; case DEVICE_PROP_MAX_TX_SAMPLES: - val = size_t(_max_tx_samples_per_packet); + val = max_tx_samps_per_packet(); return; default: UHD_THROW_PROP_GET_ERROR(); |