mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 07:11:35 +08:00
HRT thread: Do not make implicit assumptions about struct members
This commit is contained in:
@@ -143,7 +143,7 @@ static void hrt_work_process()
|
|||||||
if (elapsed >= work->delay) {
|
if (elapsed >= work->delay) {
|
||||||
/* Remove the ready-to-execute work from the list */
|
/* Remove the ready-to-execute work from the list */
|
||||||
|
|
||||||
(void)dq_rem((struct dq_entry_s *)work, &wqueue->q);
|
(void)dq_rem((struct dq_entry_s *)&(work->dq), &(wqueue->q));
|
||||||
//PX4_INFO("Dequeued work=%p", work);
|
//PX4_INFO("Dequeued work=%p", work);
|
||||||
|
|
||||||
/* Extract the work description from the entry (in case the work
|
/* Extract the work description from the entry (in case the work
|
||||||
|
|||||||
Reference in New Issue
Block a user