mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
RC Split tidy
This commit is contained in:
parent
db8698d801
commit
9556c5b811
4 changed files with 27 additions and 47 deletions
|
@ -368,6 +368,9 @@ void fcTasksInit(void)
|
|||
#ifdef USE_CAMERA_CONTROL
|
||||
setTaskEnabled(TASK_CAMCTRL, true);
|
||||
#endif
|
||||
#ifdef USE_RCSPLIT
|
||||
setTaskEnabled(TASK_RCSPLIT, rcSplitIsEnabled());
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -614,7 +617,7 @@ cfTask_t cfTasks[TASK_COUNT] = {
|
|||
#ifdef USE_RCSPLIT
|
||||
[TASK_RCSPLIT] = {
|
||||
.taskName = "RCSPLIT",
|
||||
.taskFunc = rcSplitProcess,
|
||||
.taskFunc = rcSplitUpdate,
|
||||
.desiredPeriod = TASK_PERIOD_HZ(10), // 10 Hz, 100ms
|
||||
.staticPriority = TASK_PRIORITY_MEDIUM,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue