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
@ -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…
x
Reference in New Issue
Block a user