Skip to content

Commit

Permalink
Fix HRT for protected/kernel builds
Browse files Browse the repository at this point in the history
The HRT driver was not storing the callback function or argument

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Feb 7, 2023
1 parent f029542 commit 5665d2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platforms/nuttx/src/px4/common/hrt_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ static struct usr_hrt_call *dup_entry(const px4_hrt_handle_t handle, struct hrt_
}

if (e) {

/* Store the user side callout function and argument to the user's handle */
entry->callout = callout;
entry->arg = arg;

/* Store reference to the kernel side entry to the user side struct and
* references to the semaphore and user side entry to the kernel side item
*/
Expand Down

0 comments on commit 5665d2f

Please sign in to comment.