Skip to content

Commit 71bef41

Browse files
committed
Fix duration check
1 parent 8dcfe27 commit 71bef41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/control/motion_primitives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bool MotionPrimitive::validate() const
5656

5757
bool SplinePrimitive::validate() const
5858
{
59-
if (duration <= 0)
59+
if (duration <= std::chrono::milliseconds(0))
6060
{
6161
URCL_LOG_ERROR("Duration must be greater than zero.");
6262
return false;

0 commit comments

Comments
 (0)