Skip to content

Commit 5aa5283

Browse files
committed
Fixed some issues in DEBUG_EMULATE_HEADSTAGES code path
1 parent 6ff4677 commit 5aa5283

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Source/Processors/DataThreads/RHD2000Thread.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
#define REGISTER_59_MISO_B 58
4545
#define RHD2132_16CH_OFFSET 8
4646

47+
#ifndef DEBUG_EMULATE_HEADSTAGES
48+
#define DEBUG_EMULATE_HEADSTAGES 0
49+
#endif
50+
4751
// Allocates memory for a 3-D array of doubles.
4852
void allocateDoubleArray3D(std::vector<std::vector<std::vector<double> > >& array3D,
4953
int xSize, int ySize, int zSize)
@@ -583,14 +587,14 @@ void RHD2000Thread::scanPorts()
583587
#if DEBUG_EMULATE_HEADSTAGES > 0
584588
for (int nd = 0; nd < MAX_NUM_DATA_STREAMS; ++nd)
585589
{
586-
if ((nd < DEBUG_EMULATE_HEADSTAGES) &&(tmpChipId[0] > 0))
590+
if (nd < DEBUG_EMULATE_HEADSTAGES)
587591
{
588592
evalBoard->setDataSource(nd,initStreamPorts[0]);
589593
enableHeadstage(nd,true);
590594
}
591595
else
592596
{
593-
enableHeadstage(stream,false);
597+
enableHeadstage(nd,false);
594598
}
595599
}
596600
#else

0 commit comments

Comments
 (0)