mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Add connection failure error to POSIX FTDI driver
This commit is contained in:
@@ -66,8 +66,10 @@ bool FTDI::open() {
|
||||
if(isOpen() || !openable)
|
||||
return false;
|
||||
|
||||
if(ftdiDevice.open())
|
||||
if(ftdiDevice.open()) {
|
||||
err(APIError::DriverFailedToOpen);
|
||||
return false;
|
||||
}
|
||||
|
||||
ftdiDevice.set_usb_read_timeout(100);
|
||||
ftdiDevice.set_usb_write_timeout(1000);
|
||||
|
||||
Reference in New Issue
Block a user