Skip to content

Commit

Permalink
Invert condition for set point validation in DistanceTask update method
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Feb 26, 2025
1 parent 5d91fc7 commit 689f2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IK/src/DistanceTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ bool DistanceTask::update()
return m_isValid;
}

if (m_isSetPointSetAtLeastOnce)
if (!m_isSetPointSetAtLeastOnce)
{
log()->error("[DistanceTask::update] The set point has not been set at least once.");
return m_isValid;
Expand Down

0 comments on commit 689f2bc

Please sign in to comment.