Skip to content
Snippets Groups Projects
Commit 627a3a30 authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files
parents 30211cb8 f1b75869
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,11 @@ void CUSBI2C::open(const std::string &serial) ...@@ -61,6 +61,11 @@ void CUSBI2C::open(const std::string &serial)
throw CUSBI2CException(_HERE_,"No FTDI device available with the desired serial number."); throw CUSBI2CException(_HERE_,"No FTDI device available with the desired serial number.");
} }
} }
else
{
/* handle exceptions */
throw CUSBI2CException(_HERE_,"No FTDI devices available.");
}
} }
unsigned char CUSBI2C::get_revision(void) unsigned char CUSBI2C::get_revision(void)
......
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