Skip to content
Snippets Groups Projects
Commit b08278ee authored by Jean Coquet's avatar Jean Coquet
Browse files

modified last error printing in status

parent 1a1166f0
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,7 @@ void data::operator = (const data & _src)
this->get_index = GET_M_DATA;
this->communication_error_counter = 0;
this->m_steerer = 0;
this->last_error = "no error";
//- configure optional msg handling
this->enable_timeout_msg(false);
......@@ -459,6 +460,7 @@ void data::operator = (const data & _src)
try
{
this->m_steerer->axis(this->steerer_config.axis_number).clear_ferrors();
this->last_error = "No error";
}
catch(itest::ItestException &e)
{
......@@ -527,6 +529,7 @@ void data::operator = (const data & _src)
try
{
this->m_steerer->axis(this->steerer_config.axis_number).clear_alarm();
this->last_error = "No error";
}
catch(itest::ItestException &e)
{
......
......@@ -144,7 +144,7 @@ public:
std::string get_com_status (void)
{
//- TODO : optimiser ca!
std::string s = last_error + "\n" + com_status;
std::string s = " last error: " + last_error + "\n" + com_status;
return s;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment