px4io driver: Use modern-days syntax to start task

This commit is contained in:
Lorenz Meier 2014-05-15 10:28:48 +02:00
parent 91b67d3f4a
commit 899998e58f
1 changed files with 6 additions and 1 deletions

View File

@ -794,7 +794,12 @@ PX4IO::init()
}
/* start the IO interface task */
_task = task_create("px4io", SCHED_PRIORITY_ACTUATOR_OUTPUTS, 2048, (main_t)&PX4IO::task_main_trampoline, nullptr);
_task = task_spawn_cmd("px4io",
SCHED_DEFAULT,
SCHED_PRIORITY_ACTUATOR_OUTPUTS,
2000,
(main_t)&PX4IO::task_main_trampoline,
nullptr);
if (_task < 0) {
debug("task start failed: %d", errno);