From b777fb276c9b2cdfe43b1260945753b1602f42d2 Mon Sep 17 00:00:00 2001 From: alon Date: Tue, 6 Feb 2024 14:59:55 +0200 Subject: [PATCH] fixed bugs. ready to merge --- .../gr-caribouLite/grc/caribouLite_caribouLiteSource.block.yml | 3 ++- software/gr-caribouLite/lib/caribouLiteSource_impl.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/software/gr-caribouLite/grc/caribouLite_caribouLiteSource.block.yml b/software/gr-caribouLite/grc/caribouLite_caribouLiteSource.block.yml index 3512f82..ed5058d 100644 --- a/software/gr-caribouLite/grc/caribouLite_caribouLiteSource.block.yml +++ b/software/gr-caribouLite/grc/caribouLite_caribouLiteSource.block.yml @@ -41,6 +41,7 @@ parameters: default: 900000000.0 - id: provide_meta + label: output meta data dtype: enum options: ['True', 'False'] hide: part @@ -63,7 +64,7 @@ outputs: domain: stream dtype: complex -- label: sync +- label: meta domain: stream dtype: byte hide: ${False if str(provide_meta)=='True' else True} diff --git a/software/gr-caribouLite/lib/caribouLiteSource_impl.cc b/software/gr-caribouLite/lib/caribouLiteSource_impl.cc index 60dd2dd..243b328 100644 --- a/software/gr-caribouLite/lib/caribouLiteSource_impl.cc +++ b/software/gr-caribouLite/lib/caribouLiteSource_impl.cc @@ -57,7 +57,8 @@ namespace gr { bool provide_meta) : gr::sync_block("caribouLiteSource", gr::io_signature::make(0, 0, 0), - gr::io_signature::make(1 /* min outputs */, 2 /*max outputs */, sizeof(gr_complex))) + gr::io_signature::make(1, 2, {sizeof(gr_complex), sizeof(uint8_t)}) + ) { detectBoard();