diff options
Diffstat (limited to 'apps/sensors/sensors.cpp')
-rw-r--r-- | apps/sensors/sensors.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/sensors/sensors.cpp b/apps/sensors/sensors.cpp index f81dfa9b8..8c943cca2 100644 --- a/apps/sensors/sensors.cpp +++ b/apps/sensors/sensors.cpp @@ -1175,11 +1175,12 @@ Sensors::start() ASSERT(_sensors_task == -1); /* start the task */ - _sensors_task = task_create("sensors_task", - SCHED_PRIORITY_MAX - 5, - 6000, /* XXX may be excesssive */ - (main_t)&Sensors::task_main_trampoline, - nullptr); + _sensors_task = task_spawn("sensors_task", + SCHED_RR, + SCHED_PRIORITY_MAX - 5, + 6000, /* XXX may be excesssive */ + (main_t)&Sensors::task_main_trampoline, + nullptr); if (_sensors_task < 0) { warn("task start failed"); |