diff options
author | Robert Ghilduta <robert.ghilduta@nuand.com> | 2021-04-14 01:37:38 -0700 |
---|---|---|
committer | Robert Ghilduta <robert.ghilduta@nuand.com> | 2021-04-14 01:38:43 -0700 |
commit | 8cd65e605c2a5f2166d0c297d1a06fdb2af73dc3 (patch) | |
tree | fbee9f0bf771b000c663c6898340708841b48e42 | |
parent | 46204cea1dc5d338c060d568490f84a9cb5dee62 (diff) |
bladeRF: only transmit full sample pairs to libbladeRFgr3.8
-rw-r--r-- | lib/bladerf/bladerf_sink_c.cc | 5 |
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]); |