Commit 1d516a18 authored by Sarah Seif El Nasr's avatar Sarah Seif El Nasr
Browse files

DEBUG - register tester do not write when fail detected

parent 2e475d43
......@@ -657,7 +657,12 @@ uint8_t CbcInterface::GetLastPage(Chip* pCbc)
uint32_t cAddress = (pCbc->getBeBoardId() << 16) | (pCbc->getHybridId() << 8) | pCbc->getId();
auto cIter = fPageMap.find(cAddress);
if(cIter == fPageMap.end())
return 6;
{
auto cValue = ReadChipSingleReg(pCbc, "FeCtrl&TrgLat2");
ChipRegMask cMask; cMask.fBitShift=7; cMask.fNbits=1;
uint8_t cDefaultPage = pCbc->getRegBits( "FeCtrl&TrgLat2",cMask );
return cDefaultPage;
}
else
return cIter->second;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment