This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 814640351 system/uorb: uorb listener bug fix.
814640351 is described below
commit 8146403512488c8862f5464690fb6c8288689f43
Author: likun17 <[email protected]>
AuthorDate: Mon Jan 13 20:32:00 2025 +0800
system/uorb: uorb listener bug fix.
Fixed the issue that instance+1 subscription will be triggered when
topic exists in this core
Signed-off-by: likun17 <[email protected]>
---
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 fe7909030..b9013a06a 100644
--- a/system/uorb/listener.c
+++ b/system/uorb/listener.c
@@ -427,7 +427,7 @@ static int listener_generate_object_list(FAR struct
listen_list_s *objlist,
}
}
- if (orb_exists(object.meta, object.instance++) < 0)
+ if (orb_exists(object.meta, ++object.instance) < 0)
{
break;
}