Skip to content

Commit

Permalink
bladeRF: only transmit full sample pairs to libbladeRF
Browse files Browse the repository at this point in the history
  • Loading branch information
rghilduta committed Apr 14, 2021
1 parent 963669a commit 7229656
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/bladerf/bladerf_sink_c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 7229656

Please sign in to comment.