Skip to content

Commit

Permalink
Merge branch 'fix_gr_cariboulite'
Browse files Browse the repository at this point in the history
  • Loading branch information
alon committed Jun 26, 2024
2 parents 07188a8 + 259fd83 commit 64895f0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions software/gr-caribouLite/lib/caribouLiteSource_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,15 @@ namespace gr {
auto out_meta = _provide_meta == true ? static_cast<uint8_t*>(output_items[1]) : (uint8_t*) NULL ;
int read_samples = _radio->ReadSamples(out_samples, static_cast<size_t>(noutput_items), out_meta);
if (read_samples <= 0) { return 0;}

for (int i = 0; i < read_samples; i++)
{
if (out_meta[i] == 1) {
add_item_tag(0, i, pmt::string_to_symbol("pps") ,pmt::from_bool(true));

if (_provide_meta) {
for (int i = 0; i < read_samples; i++)
{
if (out_meta[i] == 1) {
add_item_tag(0, i, pmt::string_to_symbol("pps") ,pmt::from_bool(true));
}
}
}

return read_samples;
}

Expand Down

0 comments on commit 64895f0

Please sign in to comment.