Skip to content

Commit

Permalink
Improve HumanWrenchProvider readability
Browse files Browse the repository at this point in the history
Co-authored-by: Silvio Traversaro <[email protected]>
  • Loading branch information
2 people authored and lrapetti committed Sep 2, 2022
1 parent 803ac43 commit c8c681a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devices/HumanWrenchProvider/HumanWrenchProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,8 @@ bool HumanWrenchProvider::attach(yarp::dev::PolyDriver* poly)
while (pImpl->iHumanState->getNumberOfJoints() == 0
|| pImpl->iHumanState->getNumberOfJoints() != pImpl->iHumanState->getJointNames().size()) {
yError() << LogPrefix<<"The IHumanState interface might not be ready";
if(count--==0) return false;
count--;
if(count==0) return false;
}

yInfo() << LogPrefix << deviceName << "attach() successful";
Expand Down

0 comments on commit c8c681a

Please sign in to comment.