Commit cb6bb41e authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug: the finish thread signal was not reset after stopping the...

Solved a bug: the finish thread signal was not reset after stopping the thread, and it made the thread finish immediatelly after the first time.
parent 9cc6b0da
......@@ -490,6 +490,7 @@ void CBNO055IMUDriver::set_operation_mode(op_mode_t op_mode)
{
this->event_server->set_event(this->finish_thread_event_id);
this->thread_server->end_thread(this->data_thread_id);
this->event_server->reset_event(this->finish_thread_event_id);
}
}
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment