mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-27 10:00:25 +08:00
fix(zenoh): allow mapping several instances of the same uORB topic (#29201)
This commit is contained in:
1 parent
a743c7b736
commit
15c16dd3ba
1 file changed
+2
-2
@@ -109,8 +109,8 @@ int Zenoh_Config::AddPubSub(char *topic, char *datatype, int instance_no, const
|
||||
|
||||
while (getPubSubMapping(f_topic, f_type, &f_new_instance, filename) > 0) {
|
||||
if (strcmp(topic, f_topic) == 0
|
||||
|| strcmp(datatype, f_type) == 0) {
|
||||
printf("Already mapped to uORB %s -> %s\n", f_type, f_topic);
|
||||
|| (strcmp(datatype, f_type) == 0 && instance_no == f_new_instance)) {
|
||||
printf("Already mapped to uORB %s (instance %d) -> %s\n", f_type, f_new_instance, f_topic);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user