Skip to content
Snippets Groups Projects
Commit be13477e authored by Fernando Herrero's avatar Fernando Herrero
Browse files

When new_goal and cancel_pending arrive at the same time, apply first new_goal

parent 0bac96ac
No related branches found
No related tags found
No related merge requests found
......@@ -235,10 +235,13 @@ void CTiagoNavModule::state_machine(void)
this->new_goal=false;
this->state=TIAGO_NAV_MODULE_TRANSFORM;
}
if(this->cancel_pending)
else
{
this->cancel_pending=false;
this->cancel_action();
if(this->cancel_pending)
{
this->cancel_pending=false;
this->cancel_action();
}
}
break;
......
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