Skip to content

Commit 05cbabe

Browse files
authored
Fix robot connection check (#85)
1 parent 2061af3 commit 05cbabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

abb_hardware_interface/src/abb_hardware_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ CallbackReturn ABBSystemHardware::on_activate(const rclcpp_lifecycle::State& /*
258258
{
259259
size_t counter = 0;
260260
RCLCPP_INFO(LOGGER, "Connecting to robot...");
261-
while (rclcpp::ok() && ++counter < NUM_CONNECTION_TRIES)
261+
while (rclcpp::ok() && counter++ < NUM_CONNECTION_TRIES)
262262
{
263263
// Wait for a message on any of the configured EGM channels.
264264
if (egm_manager_->waitForMessage(500))

0 commit comments

Comments
 (0)