Skip to content

Commit 6c237cf

Browse files
Donny9xiaoxiang781216
authored andcommitted
system/uorb: add O_DIRECT to access sensor as wachers
Signed-off-by: dongjiuzhu1 <[email protected]>
1 parent 925efc2 commit 6c237cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/uorb/listener.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static int listener_get_state(FAR struct orb_object *object,
194194
int ret;
195195
int fd;
196196

197-
fd = orb_open(object->meta->o_name, object->instance, 0);
197+
fd = orb_open(object->meta->o_name, object->instance, O_DIRECT);
198198
if (fd < 0)
199199
{
200200
return fd;

0 commit comments

Comments
 (0)