mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-27 03:06:36 +08:00
POSIX: Fixes for HRT implementation of simulated HW clock polling
There is a race condition for the accel and mag polling rates. Whichever one gets set first, the other will be uninitialized. Set the mag polling rate to 1ms if uninitilized. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -69,7 +69,7 @@ struct work_s
|
||||
struct dq_entry_s dq; /* Implements a doubly linked list */
|
||||
worker_t worker; /* Work callback */
|
||||
void *arg; /* Callback argument */
|
||||
uint32_t qtime; /* Time work queued */
|
||||
uint64_t qtime; /* Time work queued */
|
||||
uint32_t delay; /* Delay until work performed */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user