system/uorb: add O_DIRECT to access sensor as wachers

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2024-06-15 17:46:12 +08:00 committed by Lup Yuen Lee
parent 2ae831f40d
commit 9d7e023e65

View File

@ -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;