Skip to content

Commit

Permalink
Changed to SetReceiveCallback in docu sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peguen committed Jan 31, 2025
1 parent 8f23ace commit 8bfaf08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int main(int argc, char** argv)
eCAL::string::CSubscriber<std::string> subscriber("hello_world_topic");

// Set the Callback
subscriber.AddReceiveCallback(std::bind(&HelloWorldCallback, std::placeholders::_2));
subscriber.SetReceiveCallback(std::bind(&HelloWorldCallback, std::placeholders::_2));

// Just don't exit
while (eCAL::Ok())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main(int argc, char** argv)
eCAL::protobuf::CSubscriber<proto_messages::HelloWorld> subscriber("hello_world_protobuf");

// Set the Callback
subscriber.AddReceiveCallback(std::bind(&HelloWorldCallback, std::placeholders::_2));
subscriber.SetReceiveCallback(std::bind(&HelloWorldCallback, std::placeholders::_2));

// Just don't exit
while (eCAL::Ok())
Expand Down

0 comments on commit 8bfaf08

Please sign in to comment.