Skip to content

Commit

Permalink
FIX: build error in u20.04 due to libftdi1
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jun 26, 2023
1 parent 43da9be commit c2063fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/source/doxygen-docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
\page changelog Change Log

# Version 2.9.4: UNRELEASED
(No changes yet)
- BUG FIXES:
- Fix fail to build with libftdi1 v1.4 (Ubuntu Focal).

# Version 2.9.3: Released June 22nd, 2023
- Python:
Expand Down
2 changes: 1 addition & 1 deletion libs/comms/src/CInterfaceFTDI_LIN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void CInterfaceFTDI::Purge()
auto* ctx = static_cast<ftdi_context*>(m_ftdi_context);
ASSERT_(ctx->usb_dev);

#if MRPT_FTDI_VERSION >= 0x120
#if MRPT_FTDI_VERSION >= 0x150
if (ftdi_tcioflush(ctx) < 0)
#else
if (ftdi_usb_purge_buffers(ctx) < 0)
Expand Down

0 comments on commit c2063fd

Please sign in to comment.