aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-26 18:53:48 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-26 18:53:48 +0100
commit0a509f9424e9ca1768e430f98038962b47df6541 (patch)
tree2504b0029dbefa8b1055a27503fc374bbd569141 /src
parent5dc7424715e68ee0581df13a3e76ea4d1cf2a0bd (diff)
downloaddabmod-0a509f9424e9ca1768e430f98038962b47df6541.tar.gz
dabmod-0a509f9424e9ca1768e430f98038962b47df6541.tar.bz2
dabmod-0a509f9424e9ca1768e430f98038962b47df6541.zip
UHDOutput rename bufsize
Diffstat (limited to 'src')
-rw-r--r--src/OutputUHD.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp
index f4ddf66..62708f1 100644
--- a/src/OutputUHD.cpp
+++ b/src/OutputUHD.cpp
@@ -316,7 +316,7 @@ void UHDWorker::process()
uhd::stream_args_t stream_args("fc32"); //complex floats
uhd::tx_streamer::sptr myTxStream = uwd->myUsrp->get_tx_stream(stream_args);
- size_t bufsize = myTxStream->get_max_num_samps();
+ size_t usrp_max_num_samps = myTxStream->get_max_num_samps();
const complexf* in;
@@ -452,12 +452,12 @@ void UHDWorker::process()
myTxStream->get_max_num_samps());
while (running && !uwd->muting && (num_acc_samps < sizeIn)) {
- size_t samps_to_send = std::min(sizeIn - num_acc_samps, bufsize);
+ size_t samps_to_send = std::min(sizeIn - num_acc_samps, usrp_max_num_samps);
//ensure the the last packet has EOB set if the timestamps has been
//refreshed and need to be reconsidered.
md.end_of_burst = (frame->ts.timestamp_refresh &&
- (samps_to_send <= bufsize));
+ (samps_to_send <= usrp_max_num_samps));
//send a single packet
size_t num_tx_samps = myTxStream->send(