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

Added the exception message when the driver has to close and re-open due to a communication errors.

parent 8e5bf1a9
No related branches found
No related tags found
1 merge request!1Sergi
......@@ -129,6 +129,7 @@ void *CModelCarDriverBase::data_thread(void *param)
driver->serial_port->close();
driver->serial_port->open((void *)&driver->device);
driver->serial_port->config(&serial_config);
std::cout << e.what() << std::endl;
}
catch(CException &e){
std::cout << e.what() << std::endl;
......
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