Add ability to avoid startup delay on 1st to 2nd PD issue
This commit is contained in:
parent
2599b9a140
commit
9765aea0ec
1 changed files with 2 additions and 2 deletions
|
|
@ -157,13 +157,13 @@ protected:
|
|||
// Generate a set of product detects
|
||||
// spaced at a given period
|
||||
//
|
||||
void generatePDs(CCoreAuto* pCore, uint32_t numPDs, uint32_t periodNs)
|
||||
void generatePDs(CCoreAuto* pCore, uint32_t numPDs, uint32_t periodNs, bool noStartupDelay = false)
|
||||
{
|
||||
for (int idx = 0; idx < numPDs; idx++)
|
||||
{
|
||||
issuePd(pCore->pEncPdEmul1);
|
||||
|
||||
if (idx == 0)
|
||||
if ((idx == 0) && !noStartupDelay)
|
||||
{
|
||||
nsleepSim(periodNs - REG_WR_LATENCY_NS + STARTUP_LATENCY_NS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue