diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-15 22:17:03 -0700 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-15 22:17:03 -0700 |
commit | f892a7278a4f452c12678fe00c6ff28c2354d548 (patch) | |
tree | 771e14f0d4a98944cf37c7c6b062905b8363e3db /src/drivers | |
parent | ac4b68e01b60983adaca07ad051861e22d10139e (diff) | |
parent | 899998e58fcf59f2a2e7145bef8c1972286c3c42 (diff) | |
download | px4-firmware-f892a7278a4f452c12678fe00c6ff28c2354d548.tar.gz px4-firmware-f892a7278a4f452c12678fe00c6ff28c2354d548.tar.bz2 px4-firmware-f892a7278a4f452c12678fe00c6ff28c2354d548.zip |
Merge pull request #956 from PX4/task_spawn_cmd_io
px4io driver: Use modern-days syntax to start task
Diffstat (limited to 'src/drivers')
-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); |