POSIX FTDI: Fix a bug where closing device successfully returned an error

This commit is contained in:
Paul Hollinsky
2020-06-24 20:59:53 -04:00
parent dcc44d99ea
commit 25f079b5c6
+1 -1
View File
@@ -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;