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

Thrown an exception if there are no FTDI devices available.

parent 0be06a73
......@@ -61,6 +61,11 @@ void CUSBI2C::open(const std::string &serial)
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)
......
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