mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 08:45:36 +03:00
Merge pull request #4570 from AndersHoglund/fix_dispatcher
Fixed broken dispatcher.
This commit is contained in:
commit
bcbcd0b8ee
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ void dispatchProcess(uint32_t currentTime)
|
|||
void dispatchAdd(dispatchEntry_t *entry, int delayUs)
|
||||
{
|
||||
uint32_t delayedUntil = micros() + delayUs;
|
||||
entry->delayedUntil = delayedUntil;
|
||||
dispatchEntry_t **p = &head;
|
||||
while (*p && cmp32((*p)->delayedUntil, delayedUntil) < 0)
|
||||
p = &(*p)->next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue