Skip to content

Commit

Permalink
uORB/uORB; using array to save path for sensor_reginfo_s
Browse files Browse the repository at this point in the history
Signed-off-by: dongjiuzhu1 <[email protected]>
  • Loading branch information
Donny9 authored and xiaoxiang781216 committed Sep 19, 2024
1 parent 9a1a8d3 commit abdcb33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/uorb/sensor/topics.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,5 @@ FAR const struct orb_metadata *orb_get_meta(FAR const char *name)
return NULL;
}

return state.priv;
return (FAR const struct orb_metadata *)(uintptr_t)state.priv;
}
2 changes: 1 addition & 1 deletion system/uorb/uORB/uORB.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static int orb_advsub_open(FAR const struct orb_metadata *meta, int flags,
if (fd < 0)
{
struct sensor_reginfo_s reginfo;
reginfo.path = path;
strlcpy(reginfo.path, path, NAME_MAX);
reginfo.esize = meta->o_size;
reginfo.nbuffer = queue_size;
reginfo.persist = !!(flags & SENSOR_PERSIST);
Expand Down

0 comments on commit abdcb33

Please sign in to comment.