Merge pull request #956 from PX4/task_spawn_cmd_io

px4io driver: Use modern-days syntax to start task
This commit is contained in:
Lorenz Meier 2014-05-15 22:17:03 -07:00
commit f892a7278a
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);