mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 08:45:36 +03:00
Rename attr
Keep single and plurar definition
This commit is contained in:
parent
a6b9560b48
commit
a1a383d812
4 changed files with 32 additions and 32 deletions
|
@ -321,7 +321,7 @@ static void taskCameraControl(uint32_t currentTime)
|
|||
task_t tasks[TASK_COUNT];
|
||||
|
||||
// Task ID data in .data (initialised data)
|
||||
task_attr_t task_attrs[TASK_COUNT] = {
|
||||
task_attribute_t task_attributes[TASK_COUNT] = {
|
||||
[TASK_SYSTEM] = DEFINE_TASK("SYSTEM", "LOAD", NULL, taskSystemLoad, TASK_PERIOD_HZ(10), TASK_PRIORITY_MEDIUM_HIGH),
|
||||
[TASK_MAIN] = DEFINE_TASK("SYSTEM", "UPDATE", NULL, taskMain, TASK_PERIOD_HZ(1000), TASK_PRIORITY_MEDIUM_HIGH),
|
||||
[TASK_SERIAL] = DEFINE_TASK("SERIAL", NULL, NULL, taskHandleSerial, TASK_PERIOD_HZ(100), TASK_PRIORITY_LOW), // 100 Hz should be enough to flush up to 115 bytes @ 115200 baud
|
||||
|
@ -432,7 +432,7 @@ task_t *getTask(unsigned taskId)
|
|||
void tasksInit(void)
|
||||
{
|
||||
for (int i = 0; i < TASK_COUNT; i++) {
|
||||
tasks[i].attr = &task_attrs[i];
|
||||
tasks[i].attribute = &task_attributes[i];
|
||||
}
|
||||
|
||||
schedulerInit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue