Commit 38791af8 authored by Adam Wujek's avatar Adam Wujek

wrc_main.c: decouple wrc_initialize from idle task

Run exlicitly the wrc_initialize function. Make clear how the initialization
happens.
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 289bbb31
......@@ -275,7 +275,7 @@ static void create_tasks(void)
struct wrc_task *t;
wrc_tasks_init();
wrc_task_create( "idle", wrc_initialize, NULL );
wrc_task_create( "idle", NULL, NULL );
wrc_task_create( "check-link", NULL, wrc_check_link );
wrc_task_create( "uptime", init_uptime, update_uptime );
wrc_task_create( "ptp", NULL, wrc_ptp_update);
......@@ -333,6 +333,8 @@ int main(void)
check_reset();
create_tasks();
wrc_initialize();
/* initialization of individual tasks */
wrc_start_all_tasks();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment