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
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to