This commit is contained in:
Robin Müller 2023-03-27 18:13:00 +02:00
parent fcb5613aa8
commit f1774fe80f
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -78,6 +78,7 @@ ReturnValue_t PapbVcInterface::pollPapbBusySignal(uint32_t maxPollRetries) const
// Ignore signal handling here for now.
nanosleep(&nextDelay, &remDelay);
// Adaptive delay.
if (nextDelay.tv_nsec * 2 <= MAX_DELAY_PAPB_POLLING_NS) {
nextDelay.tv_nsec *= 2;
}