Skip to content
Snippets Groups Projects
Commit 09dccfaf authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug: when the watchdog time was 0.0, the watchdog never got active.

parent 7db186a4
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ bool CROSWatchdog::is_active(void)
ros::Time current_time=ros::Time::now();
pthread_mutex_lock(&this->access_);
if((current_time-this->start_time)>this->max_time)
if((current_time-this->start_time)>=this->max_time)
{
pthread_mutex_unlock(&this->access_);
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment