Merge pull request 'remove double lock' (#554) from bugfix_axi_ptme_lock into develop
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

Reviewed-on: #554
This commit is contained in:
Robin Müller 2023-04-03 15:30:36 +02:00
commit 73e2508025

View File

@ -76,7 +76,6 @@ uint32_t AxiPtmeConfig::readReg(uint32_t regOffset) {
}
void AxiPtmeConfig::writePollThreshold(AxiPtmeConfig::IdlePollThreshold pollThreshold) {
MutexGuard mg(mutex, timeoutType, mutexTimeout);
uint32_t regVal = readCommonCfgReg();
// Clear bits first
regVal &= ~(0b111 << 3);