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

This commit is contained in:
2023-03-27 17:43:52 +02:00
parent 1a0e632d2f
commit 363fc89209
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;
}