mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
VDev posix: Initialize HRT work
This commit is contained in:
@@ -270,7 +270,7 @@ extern "C" {
|
||||
if (ret >= 0) {
|
||||
if (timeout > 0) {
|
||||
// Use a work queue task
|
||||
work_s _hpwork;
|
||||
work_s _hpwork = {};
|
||||
|
||||
hrt_work_queue(&_hpwork, (worker_t)&timer_cb, (void *)&sem, 1000 * timeout);
|
||||
px4_sem_wait(&sem);
|
||||
|
||||
Reference in New Issue
Block a user