thsi is cleaner
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
Robin Müller 2023-03-27 17:43:52 +02:00
parent 1a0e632d2f
commit 363fc89209
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,8 @@ ReturnValue_t PapbVcInterface::pollPapbBusySignal(uint32_t maxPollRetries) const
return PAPB_BUSY;
}
nanosleep(&nextDelay, const_cast<struct timespec*>(&remDelay));
// Ignore signal handling here for now.
nanosleep(&nextDelay, &remDelay);
if (nextDelay.tv_nsec * 2 <= MAX_DELAY_PAPB_POLLING_NS) {
nextDelay.tv_nsec *= 2;
}

View File

@ -87,7 +87,7 @@ class PapbVcInterface : public VirtualChannelIF {
std::string uioFile;
int mapNum = 0;
struct timespec remDelay;
mutable struct timespec remDelay;
volatile uint32_t* vcBaseReg = nullptr;