Skip to content

Commit 56ef287

Browse files
committed
removed debug msg and increased displaybuffer to 20s
this should reduce the impact of the remaining 1px plot issue until we track it down
1 parent 5e02e77 commit 56ef287

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Source/Plugins/LfpDisplayNodeBeta/LfpDisplayCanvas.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ void LfpDisplayCanvas::updateScreenBuffer()
945945
if (nSamples < 0) // buffer has reset to 0 -- xxx 2do bug: this shouldnt happen because it makes the range/histogram display not work properly/look off for one pixel
946946
{
947947
nSamples = (displayBufferSize - dbi) + index +1;
948-
//std::cout << "nsamples 0 " ;
948+
// std::cout << "nsamples 0 " ;
949949
}
950950

951951
//if (channel == 15 || channel == 16)
@@ -1012,10 +1012,10 @@ void LfpDisplayCanvas::updateScreenBuffer()
10121012

10131013
int nextpix = (dbi +(int)ratio +1) % (displayBufferSize+1); // position to next pixels index
10141014

1015-
//if (nextpix <= dbi) { // at the end of the displaybuffer, this can occur and it causes the display to miss one pixel woth of sample - this circumvents that
1015+
if (nextpix <= dbi) { // at the end of the displaybuffer, this can occur and it causes the display to miss one pixel woth of sample - this circumvents that
10161016
// std::cout << "np " ;
1017-
//nextpix=dbi;
1018-
//}
1017+
nextpix=dbi;
1018+
}
10191019

10201020
for (int j = dbi; j <= nextpix; j++)
10211021
{

Source/Plugins/LfpDisplayNodeBeta/LfpDisplayNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ using namespace LfpDisplayNodeBeta;
2929

3030
LfpDisplayNode::LfpDisplayNode()
3131
: GenericProcessor("LFP Viewer Beta"),
32-
displayGain(1), bufferLength(5.0f),
32+
displayGain(1), bufferLength(20.0f),
3333
abstractFifo(100)
3434
{
3535
//std::cout << " LFPDisplayNodeConstructor" << std::endl;

0 commit comments

Comments
 (0)