aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Foster <nick@ettus.com>2012-03-16 13:58:27 -0700
committerNick Foster <nick@ettus.com>2012-03-16 13:59:46 -0700
commit6d53b7eb4b94ec5e0d52cffbbc43fa63516ac270 (patch)
tree89dcbad23edf1ca5c7c52996f876b864137abf2b
parentb5385fa759c5d3d42d109bb8466b984cd5ec7b4a (diff)
downloaduhd-6d53b7eb4b94ec5e0d52cffbbc43fa63516ac270.tar.gz
uhd-6d53b7eb4b94ec5e0d52cffbbc43fa63516ac270.tar.bz2
uhd-6d53b7eb4b94ec5e0d52cffbbc43fa63516ac270.zip
tx_bursts: set EOB on nsamps <= spb
-rw-r--r--host/examples/tx_bursts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/tx_bursts.cpp b/host/examples/tx_bursts.cpp
index f5ae18a9f..5a10ff81b 100644
--- a/host/examples/tx_bursts.cpp
+++ b/host/examples/tx_bursts.cpp
@@ -128,7 +128,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
size_t samps_to_send = std::min(total_num_samps - num_acc_samps, spb);
//ensure the the last packet has EOB set
- md.end_of_burst = samps_to_send < spb;
+ md.end_of_burst = samps_to_send <= spb;
//send a single packet
size_t num_tx_samps = tx_stream->send(