POSIX FTDI: Fix a bug where closing device successfully returned an error
parent
dcc44d99ea
commit
25f079b5c6
|
|
@ -91,7 +91,7 @@ bool FTDI::close() {
|
|||
writeThread.join();
|
||||
|
||||
bool ret = ftdi.closeDevice();
|
||||
if(ret != 0)
|
||||
if(!ret)
|
||||
report(APIEvent::Type::DriverFailedToClose, APIEvent::Severity::Error);
|
||||
|
||||
uint8_t flush;
|
||||
|
|
|
|||
Loading…
Reference in New Issue