Skip to content

Commit 7229656

Browse files
committed
bladeRF: only transmit full sample pairs to libbladeRF
1 parent 963669a commit 7229656

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/bladerf/bladerf_sink_c.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ int bladerf_sink_c::work(int noutput_items,
237237
return 0;
238238
}
239239

240+
noutput_items &= ~(3ULL);
241+
if (!noutput_items) {
242+
return 0;
243+
}
244+
240245
// copy the samples from input_items
241246
gr_complex const **in = reinterpret_cast<gr_complex const **>(&input_items[0]);
242247

0 commit comments

Comments
 (0)