Skip to content

Commit 9a4d5dd

Browse files
committed
[config] Don't calibrate GBT for disabled links
1 parent 6347227 commit 9a4d5dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Cru/CruBar.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,8 @@ void CruBar::configure(bool force)
527527
}
528528

529529
log("Calibrating the fPLLs");
530+
Gbt gbt = Gbt(mPdaBar, mLinkMap, mWrapperCount);
531+
gbt.calibrateGbt(mLinkMap);
530532
Cru::fpllref(mLinkMap, mPdaBar, 2);
531533
Cru::fpllcal(mLinkMap, mPdaBar);
532534
}
@@ -538,8 +540,9 @@ void CruBar::configure(bool force)
538540

539541
/* GBT */
540542
if (!std::equal(mLinkMap.begin(), mLinkMap.end(), reportInfo.linkMap.begin()) || force) {
541-
log("Calibrating GBT");
542-
Gbt gbt = Gbt(mPdaBar, mLinkMap, mWrapperCount);
543+
//log("Calibrating GBT");
544+
//Gbt gbt = Gbt(mPdaBar, mLinkMap, mWrapperCount);
545+
//gbt.calibrateGbt({ std::pair<int, Link>(el.first, el.second) });
543546

544547
/* BSP */
545548
disableDataTaking();
@@ -560,7 +563,6 @@ void CruBar::configure(bool force)
560563
// link mismatch
561564
// -> toggle enabled status
562565
if (link.enabled != linkPrevState.enabled || force) {
563-
gbt.calibrateGbt({ std::pair<int, Link>(el.first, el.second) });
564566
// toggle enable/disable
565567
if (linkPrevState.enabled) {
566568
datapathWrapper.setLinkDisabled(link);

0 commit comments

Comments
 (0)