This is an automated email from the ASF dual-hosted git repository.

lupyuen pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 9d7e023e65ed7589f32d7f8b2f2d966ebcc3fce3
Author: dongjiuzhu1 <dongjiuz...@xiaomi.com>
AuthorDate: Sat Jun 15 17:46:12 2024 +0800

    system/uorb: add O_DIRECT to access sensor as wachers
    
    Signed-off-by: dongjiuzhu1 <dongjiuz...@xiaomi.com>
---
 system/uorb/listener.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/uorb/listener.c b/system/uorb/listener.c
index 83b8efb17..9479cb2dd 100644
--- a/system/uorb/listener.c
+++ b/system/uorb/listener.c
@@ -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;

Reply via email to