Skip to content
Snippets Groups Projects
Commit a4ef0ab2 authored by Alessio Igor Bogani's avatar Alessio Igor Bogani
Browse files

Add a comment

parent b00ce4fe
No related branches found
Tags 1.2.0
No related merge requests found
......@@ -526,14 +526,17 @@ void USB2::write(const Tango::DevVarCharArray *argin)
if(ret != 0 || bytes_written != bytes_to_write - bytes_total) {
delete argin_data;
string error_mesg = "Unable to send request to device";
close();
open();
string error_mesg = "Unable to send request to device";
DEBUG_STREAM << error_mesg << endl;
set_state( Tango::FAULT );
set_status( error_mesg );
// TODO have we to wait? timeout is decreased?
Tango::Except::throw_exception( "",
error_mesg,
"USB2::write()");
......
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