aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/mboard_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-17 09:52:43 -0700
committerJosh Blum <josh@joshknows.com>2010-05-17 09:52:43 -0700
commitd20595a3fe9ba864d824c160c3db39fc7a3d1e7c (patch)
tree4331866545f1ee5394247b724cbd6173ed64e0f0 /host/lib/usrp/usrp2/mboard_impl.cpp
parent695dd535d5a7419f467598a90c51c7e0f3d611e5 (diff)
downloaduhd-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/mboard_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/mboard_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp
index 9ae68d158..a10529102 100644
--- a/host/lib/usrp/usrp2/mboard_impl.cpp
+++ b/host/lib/usrp/usrp2/mboard_impl.cpp
@@ -111,7 +111,7 @@ void usrp2_impl::issue_ddc_stream_cmd(const stream_cmd_t &stream_cmd){
//issue the stream command
_iface->poke32(FR_RX_CTRL_STREAM_CMD, FR_RX_CTRL_MAKE_CMD(
- (inst_samps)? stream_cmd.num_samps : ((inst_chain)? _max_rx_samples_per_packet : 1),
+ (inst_samps)? stream_cmd.num_samps : ((inst_chain)? max_rx_samps_per_packet() : 1),
(stream_cmd.stream_now)? 1 : 0,
(inst_chain)? 1 : 0,
(inst_reload)? 1 : 0