mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Added dispatcher start only if needed.
This commit is contained in:
parent
c4885d8018
commit
a88d2db0d5
4 changed files with 19 additions and 1 deletions
|
@ -27,6 +27,17 @@
|
|||
#include "fc/fc_dispatch.h"
|
||||
|
||||
static dispatchEntry_t *head = NULL;
|
||||
static bool dispatchEnabled = false;
|
||||
|
||||
bool isDispatchEnabled(void)
|
||||
{
|
||||
return dispatchEnabled;
|
||||
}
|
||||
|
||||
void dispatchStart(void)
|
||||
{
|
||||
dispatchEnabled = true;
|
||||
}
|
||||
|
||||
void dispatchProcess(uint32_t currentTime)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue