Renamed some items based on feedback from @martinbudden
This commit is contained in:
parent
a88d2db0d5
commit
6606c0d39f
|
@ -29,12 +29,12 @@
|
|||
static dispatchEntry_t *head = NULL;
|
||||
static bool dispatchEnabled = false;
|
||||
|
||||
bool isDispatchEnabled(void)
|
||||
bool dispatchIsEnabled(void)
|
||||
{
|
||||
return dispatchEnabled;
|
||||
}
|
||||
|
||||
void dispatchStart(void)
|
||||
void dispatchEnable(void)
|
||||
{
|
||||
dispatchEnabled = true;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ typedef struct dispatchEntry_s {
|
|||
struct dispatchEntry_s *next;
|
||||
} dispatchEntry_t;
|
||||
|
||||
bool isDispatchEnabled(void);
|
||||
void dispatchStart(void);
|
||||
bool dispatchIsEnabled(void);
|
||||
void dispatchEnable(void);
|
||||
void dispatchProcess(uint32_t currentTime);
|
||||
void dispatchAdd(dispatchEntry_t *entry, int delayUs);
|
||||
|
|
|
@ -235,9 +235,7 @@ void fcTasksInit(void)
|
|||
setTaskEnabled(TASK_BATTERY, feature(FEATURE_VBAT) || feature(FEATURE_CURRENT_METER));
|
||||
setTaskEnabled(TASK_RX, true);
|
||||
|
||||
if (isDispatchEnabled()) {
|
||||
setTaskEnabled(TASK_DISPATCH, true);
|
||||
}
|
||||
setTaskEnabled(TASK_DISPATCH, dispatchIsEnabled());
|
||||
|
||||
#ifdef BEEPER
|
||||
setTaskEnabled(TASK_BEEPER, true);
|
||||
|
|
|
@ -317,7 +317,7 @@ bool spektrumInit(const rxConfig_t *rxConfig, rxRuntimeConfig_t *rxRuntimeConfig
|
|||
}
|
||||
|
||||
if (serialPort && srxlEnabled) {
|
||||
dispatchStart();
|
||||
dispatchEnable();
|
||||
}
|
||||
return serialPort != NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue