aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Ghilduta <robert.ghilduta@nuand.com>2021-04-14 01:37:38 -0700
committerRobert Ghilduta <robert.ghilduta@nuand.com>2021-04-14 01:38:43 -0700
commit8cd65e605c2a5f2166d0c297d1a06fdb2af73dc3 (patch)
treefbee9f0bf771b000c663c6898340708841b48e42
parent46204cea1dc5d338c060d568490f84a9cb5dee62 (diff)
bladeRF: only transmit full sample pairs to libbladeRFgr3.8
-rw-r--r--lib/bladerf/bladerf_sink_c.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bladerf/bladerf_sink_c.cc b/lib/bladerf/bladerf_sink_c.cc
index c5b7dd1..d3d607b 100644
--- a/lib/bladerf/bladerf_sink_c.cc
+++ b/lib/bladerf/bladerf_sink_c.cc
@@ -237,6 +237,11 @@ int bladerf_sink_c::work(int noutput_items,
return 0;
}
+ noutput_items &= ~(3ULL);
+ if (!noutput_items) {
+ return 0;
+ }
+
// copy the samples from input_items
gr_complex const **in = reinterpret_cast<gr_complex const **>(&input_items[0]);