We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a2fa96 commit 38175d9Copy full SHA for 38175d9
1 file changed
Source/Plugins/LfpDisplayNode/LfpDisplayNode.cpp
@@ -146,6 +146,7 @@ void LfpDisplayNode::setSubprocessor(int sp)
146
147
subprocessorToDraw = sp;
148
std::cout << "LfpDisplayNode setting subprocessor to " << sp << std::endl;
149
+
150
updateSubprocessorsFlag = false;
151
152
}
@@ -171,6 +172,10 @@ bool LfpDisplayNode::resizeBuffer()
171
172
{
173
abstractFifo.setTotalSize(nSamples);
174
displayBuffer->setSize(nInputs + numEventChannels, nSamples); // add extra channels for TTLs
175
+ displayBuffer->clear();
176
177
+ displayBufferIndex.clear();
178
+ displayBufferIndex.insertMultiple(0, 0, numChannelsInSubprocessor + numEventChannels);
179
180
return true;
181
0 commit comments