From 37ea05439ace4a1e0a3ebea5c947ff3b568a92f7 Mon Sep 17 00:00:00 2001 From: drindr Date: Sun, 13 Jul 2025 23:49:36 +0800 Subject: [PATCH] fix: in c++ ros2 example, too few ticks to ensure everything work correctly --- examples/c++-ros2-dataflow/node-rust-api/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/c++-ros2-dataflow/node-rust-api/main.cc b/examples/c++-ros2-dataflow/node-rust-api/main.cc index 6fae1c34..ec5aeabd 100644 --- a/examples/c++-ros2-dataflow/node-rust-api/main.cc +++ b/examples/c++-ros2-dataflow/node-rust-api/main.cc @@ -73,7 +73,7 @@ int main() std::cerr << "Unknown event type " << static_cast(ty) << std::endl; } - if (received_ticks > 20) + if (received_ticks > 20 && responses_received > 0) { break; }