Bug in 'gr_tagged_file_sink.cc'

Hi,

I found a bug in the ‘gr_tagged_file_sink.cc’ file during my work on a
burst detection.

Line 203 should be changed to:
203 int count = fwrite (&inbuf[d_itemsize*idx], d_itemsize,
noutput_items-idx, d_handle);

The original code was:

202 if(d_state == IN_BURST) { 203 int count = fwrite (&inbuf[idx],
d_itemsize, noutput_items-idx, d_handle);
204 if (count == 0) {
205 if(ferror(d_handle)) {
206 perror(“gr_tagged_file_sink: error writing file”);
207 }
208 }
209 idx = noutput_items;
210 }

Daniel

On Wed, Sep 7, 2011 at 5:16 AM, Daniel Bartel
[email protected]wrote:

202 if(d_state == IN_BURST) {

Daniel

Yep, certainly was a bug. Thanks!

I’m working on updating that uhd_burst_detector.py now to actually
detect
bursts :slight_smile: I have it working well with a simple narrowband FM
push-to-talk
system right now. This was in preparation for my stream tags talk next
week
at the conference. Glad to get at least one more bug out of the system.

Tom