Skip to content

Commit

Permalink
- bug fix: write ox 0x1 to ROC reg 13 should be followed by a write o…
Browse files Browse the repository at this point in the history
…f 0x0
  • Loading branch information
murat committed Jan 23, 2025
1 parent 4914b29 commit b437942
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions otsdaq-mu2e-tracker/Ui/DtcInterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -711,10 +711,11 @@ int DtcInterface::ValidateVarPatterns (ushort* DtcData, ulong EwTag, ulong* Off
if (used != 0) {
uint16_t u = fDtc->ReadROCRegister(DTC_Link_ID(i),18,100);
if ((u >> 0x8) != LaneMask) {
// try to recover
// try to recover - write 1, then - 0 to reg 13
fDtc->WriteROCRegister(DTC_Link_ID(i), 13,0x1,false,1000);
std::this_thread::sleep_for(std::chrono::microseconds(fSleepTimeROCWrite));
// fDtc->WriteROCRegister(DTC_Link_ID(i), 13,0x0,false,1000);
fDtc->WriteROCRegister(DTC_Link_ID(i), 13,0x0,false,1000);
std::this_thread::sleep_for(std::chrono::microseconds(fSleepTimeROCWrite));
// and check again
u = fDtc->ReadROCRegister(DTC_Link_ID(i),18,100);
if ((u >> 0x8) != LaneMask) {
Expand Down

0 comments on commit b437942

Please sign in to comment.