diff options
author | Jon Szymaniak <jon.szymaniak@gmail.com> | 2014-10-25 15:11:57 -0400 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-11-03 23:23:54 +0100 |
commit | 23b1b9cdb1349bb61b9fa2acae6482c654d2a8f6 (patch) | |
tree | 7ec01bcb8e86118fd498460e9269632c1d47085b /lib/bladerf/bladerf_source_c.cc | |
parent | 42c66fdd70a70115f6cbc390f801ca4ca42e581d (diff) |
bladeRF: Removed unused bladerf_metadata parameter from rx/tx calls
It is safe (and preferred) to pass NULL for the metadata paremeter when
using a format that does utilize the metadata structure.
Diffstat (limited to 'lib/bladerf/bladerf_source_c.cc')
-rw-r--r-- | lib/bladerf/bladerf_source_c.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bladerf/bladerf_source_c.cc b/lib/bladerf/bladerf_source_c.cc index d7eaeeb..4c698f1 100644 --- a/lib/bladerf/bladerf_source_c.cc +++ b/lib/bladerf/bladerf_source_c.cc @@ -140,7 +140,6 @@ int bladerf_source_c::work( int noutput_items, gr_vector_void_star &output_items ) { int ret; - struct bladerf_metadata meta; int16_t *current; const float scaling = 1.0f / 2048.0f; gr_complex *out = static_cast<gr_complex *>(output_items[0]); @@ -160,7 +159,7 @@ int bladerf_source_c::work( int noutput_items, /* Grab all the samples into the temporary buffer */ ret = bladerf_sync_rx(_dev.get(), static_cast<void *>(_conv_buf), - noutput_items, &meta, _stream_timeout_ms); + noutput_items, NULL, _stream_timeout_ms); if ( ret != 0 ) { std::cerr << _pfx << "bladerf_sync_rx error: " << bladerf_strerror(ret) << std::endl; |