1
0
Fork 0
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:
blckmn 2017-01-11 08:57:26 +11:00
parent c4885d8018
commit a88d2db0d5
4 changed files with 19 additions and 1 deletions

View file

@ -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)
{