mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-19 12:38:19 +00:00
uORB/uORB; using array to save path for sensor_reginfo_s
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
9a1a8d3ca3
commit
abdcb33f14
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue