diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-15 10:28:48 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-15 10:28:48 +0200 |
commit | 899998e58fcf59f2a2e7145bef8c1972286c3c42 (patch) | |
tree | aba5d8197c32ea149865e97e14581153509716b0 /src/drivers/px4io/px4io.cpp | |
parent | 91b67d3f4aff0686638828ed2629793cc04b8be4 (diff) | |
download | px4-firmware-899998e58fcf59f2a2e7145bef8c1972286c3c42.tar.gz px4-firmware-899998e58fcf59f2a2e7145bef8c1972286c3c42.tar.bz2 px4-firmware-899998e58fcf59f2a2e7145bef8c1972286c3c42.zip |
px4io driver: Use modern-days syntax to start task
Diffstat (limited to 'src/drivers/px4io/px4io.cpp')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 3c3b59862..da454eb85 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -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); |