Skip to content

Commit

Permalink
Fixed port name check if-statement logic
Browse files Browse the repository at this point in the history
  • Loading branch information
EhsanRanjbari committed Jun 26, 2024
1 parent bddf4a5 commit fb42639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/IWearActuators/src/IWearActuatorsWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void IWearActuatorsWrapper::run()

bool IWearActuatorsWrapper::open(yarp::os::Searchable& config)
{
if (!config.check("actuatorCommandInputPortName") || !config.check("gloveActuatorCommandInputPortName"))
if (!config.check("actuatorCommandInputPortName") && !config.check("gloveActuatorCommandInputPortName"))
{
yError() << LogPrefix << "No actuator command input ports found.";
return false;
Expand Down

0 comments on commit fb42639

Please sign in to comment.