Commit a9ce6113 authored by Sergi Hernandez's avatar Sergi Hernandez Committed by Fernando Herrero
Browse files

Thrown an exception if there are no FTDI devices available.

parent 30211cb8
......@@ -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