mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-08 22:17:23 +00:00
system/uorb: add O_DIRECT to access sensor as wachers
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
2ae831f40d
commit
9d7e023e65
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ static int listener_get_state(FAR struct orb_object *object,
|
|||
int ret;
|
||||
int fd;
|
||||
|
||||
fd = orb_open(object->meta->o_name, object->instance, 0);
|
||||
fd = orb_open(object->meta->o_name, object->instance, O_DIRECT);
|
||||
if (fd < 0)
|
||||
{
|
||||
return fd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue