mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +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)
|
void dispatchAdd(dispatchEntry_t *entry, int delayUs)
|
||||||
{
|
{
|
||||||
uint32_t delayedUntil = micros() + delayUs;
|
uint32_t delayedUntil = micros() + delayUs;
|
||||||
|
entry->delayedUntil = delayedUntil;
|
||||||
dispatchEntry_t **p = &head;
|
dispatchEntry_t **p = &head;
|
||||||
while (*p && cmp32((*p)->delayedUntil, delayedUntil) < 0)
|
while (*p && cmp32((*p)->delayedUntil, delayedUntil) < 0)
|
||||||
p = &(*p)->next;
|
p = &(*p)->next;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue