Skip to content

Commit 3b7d1d2

Browse files
committed
ADC: add time_sink comment
Signed-off-by: Andrei Popa <andrei.popa@analog.com>
1 parent a902634 commit 3b7d1d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gr-util/src/time_sink_f_impl.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ time_sink_f_impl::time_sink_f_impl(int size, size_t vlen, float sampleRate, cons
111111
// reserve memory for n buffers
112112
m_data.reserve(nconnections);
113113

114+
// we fill buffer with 0 to avoid sending garbage if buffer isn't completely filled with data
114115
for(int i = 0; i < m_nconnections; i++) {
115116
m_buffers.push_back(std::deque<float>());
116117
m_data.push_back(std::vector<float>());

0 commit comments

Comments
 (0)