mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
POSIX FTDI: Fix a bug where closing device successfully returned an error
This commit is contained in:
@@ -91,7 +91,7 @@ bool FTDI::close() {
|
|||||||
writeThread.join();
|
writeThread.join();
|
||||||
|
|
||||||
bool ret = ftdi.closeDevice();
|
bool ret = ftdi.closeDevice();
|
||||||
if(ret != 0)
|
if(!ret)
|
||||||
report(APIEvent::Type::DriverFailedToClose, APIEvent::Severity::Error);
|
report(APIEvent::Type::DriverFailedToClose, APIEvent::Severity::Error);
|
||||||
|
|
||||||
uint8_t flush;
|
uint8_t flush;
|
||||||
|
|||||||
Reference in New Issue
Block a user