From 809d711d0cf81ebb87025a4f584e52e3797c9904 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sat, 15 Nov 2014 19:04:35 +0100 Subject: [PATCH] Add FT230X support to ftdi_usb_find_all() --- src/ftdi.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ftdi.c b/src/ftdi.c index fe146b7..47e6959 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -295,7 +295,7 @@ struct ftdi_version_info ftdi_get_library_version(void) Finds all ftdi devices with given VID:PID on the usb bus. Creates a new ftdi_device_list which needs to be deallocated by ftdi_list_free() after use. With VID:PID 0:0, search for the default devices - (0x403:0x6001, 0x403:0x6010, 0x403:0x6011, 0x403:0x6014) + (0x403:0x6001, 0x403:0x6010, 0x403:0x6011, 0x403:0x6014, 0x403:0x6015) \param ftdi pointer to ftdi_context \param devlist Pointer where to store list of found devices @@ -332,7 +332,8 @@ int ftdi_usb_find_all(struct ftdi_context *ftdi, struct ftdi_device_list **devli desc.idVendor == vendor && desc.idProduct == product) || (!(vendor || product) && (desc.idVendor == 0x403) && (desc.idProduct == 0x6001 || desc.idProduct == 0x6010 - || desc.idProduct == 0x6011 || desc.idProduct == 0x6014))) + || desc.idProduct == 0x6011 || desc.idProduct == 0x6014 + || desc.idProduct == 0x6015))) { *curdev = (struct ftdi_device_list*)malloc(sizeof(struct ftdi_device_list)); if (!*curdev) -- 1.7.1